Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 108.6 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001637/0.001637, allocations: 196.8 kB / 24.5 MB, free: 4.008 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 225.7 MB / 253.3 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 47.92 kB / 371.2 MB, free: 9.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2644, allocations: 52.19 MB / 423.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003287/0.2677, allocations: 1.927 MB / 425.3 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001925/0.2696, allocations: 1.242 MB / 426.6 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.491e-05/0.2697, allocations: 0 / 426.6 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00106/0.2707, allocations: 0.4996 MB / 427.1 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002383/0.271, allocations: 199.4 kB / 427.3 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004462/0.2714, allocations: 183.2 kB / 427.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000347/0.2718, allocations: 219.2 kB / 427.7 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.037e-05/0.2719, allocations: 9.812 kB / 427.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002027/0.2721, allocations: 127.5 kB / 427.8 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003157/0.2724, allocations: 235.4 kB / 428 MB, free: 9.961 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.536e-05/0.2724, allocations: 8 kB / 428 MB, free: 9.953 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001551/0.2726, allocations: 59.95 kB / 428.1 MB, free: 9.895 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002192/0.2728, allocations: 267.3 kB / 428.4 MB, free: 9.633 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002446/0.273, allocations: 273.9 kB / 428.6 MB, free: 9.363 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00085/0.2739, allocations: 0.7814 MB / 429.4 MB, free: 8.582 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.2739, allocations: 0 / 429.4 MB, free: 8.582 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.2739, allocations: 0 / 429.4 MB, free: 8.582 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.508e-06/0.2739, allocations: 0 / 429.4 MB, free: 8.582 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.002628/0.2765, allocations: 1.141 MB / 430.5 MB, free: 7.406 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.2765, allocations: 15.97 kB / 430.6 MB, free: 7.391 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.3e-05/0.2766, allocations: 192 / 430.6 MB, free: 7.391 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.682e-05/0.2766, allocations: 38.73 kB / 430.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001912/0.2768, allocations: 88.38 kB / 430.7 MB, free: 7.258 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001039/0.2778, allocations: 0.6993 MB / 431.4 MB, free: 6.52 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.875e-06/0.2778, allocations: 384 / 431.4 MB, free: 6.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.249e-05/0.2779, allocations: 12.3 kB / 431.4 MB, free: 6.508 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002957/0.2782, allocations: 125.5 kB / 431.5 MB, free: 6.379 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.2782, allocations: 0 / 431.5 MB, free: 6.379 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.578e-05/0.2782, allocations: 0 / 431.5 MB, free: 6.379 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.2782, allocations: 4 kB / 431.5 MB, free: 6.375 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003716/0.2786, allocations: 143.9 kB / 431.7 MB, free: 6.234 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001135/0.2797, allocations: 0.7859 MB / 432.4 MB, free: 5.406 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002261/0.2799, allocations: 90.45 kB / 432.5 MB, free: 5.309 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001866/0.2801, allocations: 72.91 kB / 432.6 MB, free: 5.234 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.784e-05/0.2801, allocations: 4 kB / 432.6 MB, free: 5.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.766e-05/0.2802, allocations: 34.55 kB / 432.6 MB, free: 5.188 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.2802, allocations: 0 / 432.6 MB, free: 5.188 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008662/0.281, allocations: 321 kB / 433 MB, free: 4.867 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.574e-05/0.2811, allocations: 55.41 kB / 433 MB, free: 4.801 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001808/0.2829, allocations: 1.413 MB / 434.4 MB, free: 3.367 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.598e-05/0.2829, allocations: 25.7 kB / 434.5 MB, free: 3.336 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003597/0.2833, allocations: 388.4 kB / 434.8 MB, free: 2.953 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.827e-05/0.2833, allocations: 7.906 kB / 434.8 MB, free: 2.945 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.296e-05/0.2834, allocations: 25.7 kB / 434.9 MB, free: 2.914 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.2835, allocations: 309.9 kB / 435.2 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001783/0.2837, allocations: 67.94 kB / 435.2 MB, free: 2.539 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000183/0.2839, allocations: 86.53 kB / 435.3 MB, free: 2.445 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003793/0.2842, allocations: 158.4 kB / 435.5 MB, free: 2.281 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.2842, allocations: 0 / 435.5 MB, free: 2.281 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000594/0.2848, allocations: 272.9 kB / 435.7 MB, free: 2.008 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.2849, allocations: 7.984 kB / 435.7 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.2849, allocations: 0 / 435.7 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.2849, allocations: 4 kB / 435.8 MB, free: 1.996 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001909/0.2851, allocations: 11.98 kB / 435.8 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.208e-06/0.2851, allocations: 4 kB / 435.8 MB, free: 1.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001911/0.2853, allocations: 16.08 kB / 435.8 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.854e-05/0.2853, allocations: 4 kB / 435.8 MB, free: 1.961 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003607/0.2856, allocations: 333.6 kB / 436.1 MB, free: 1.625 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001875/0.2858, allocations: 95.38 kB / 436.2 MB, free: 1.531 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006469/0.2865, allocations: 285.6 kB / 436.5 MB, free: 1.242 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.2865, allocations: 3.938 kB / 436.5 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/0.2865, allocations: 8 kB / 436.5 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.2865, allocations: 0 / 436.5 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006101/0.2871, allocations: 497.7 kB / 437 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.2871, allocations: 0 / 437 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.607e-05/0.2872, allocations: 11.98 kB / 437 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.2872, allocations: 0 / 437 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.2872, allocations: 4 kB / 437 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.2872, allocations: 4 kB / 437 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.2872, allocations: 0 / 437 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005413/0.2878, allocations: 319.3 kB / 437.3 MB, free: 364 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003381/0.2881, allocations: 159.3 kB / 437.5 MB, free: 204 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.649e-05/0.2882, allocations: 0 / 437.5 MB, free: 204 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001868/0.2883, allocations: 15.92 kB / 437.5 MB, free: 188 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.212e-05/0.2884, allocations: 11.98 kB / 437.5 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.736e-06/0.2884, allocations: 0 / 437.5 MB, free: 176 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001315/0.2897, allocations: 1.013 MB / 438.5 MB, free: 15.15 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2897, allocations: 0 / 438.5 MB, free: 15.15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003353/0.2901, allocations: 60 kB / 438.6 MB, free: 15.09 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009517/0.291, allocations: 0.868 MB / 439.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003826/0.2914, allocations: 124 kB / 439.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2914, allocations: 4.062 kB / 439.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001753/0.2916, allocations: 55.95 kB / 439.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005758/0.2921, allocations: 104.1 kB / 439.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0119/0.304, allocations: 8.799 MB / 448.5 MB, free: 4.965 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007278/0.3048, allocations: 1.001 MB / 449.5 MB, free: 3.941 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006887/0.3055, allocations: 478 kB / 450 MB, free: 3.469 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003421/0.3058, allocations: 247.4 kB / 450.2 MB, free: 3.227 MB / 350.1 MB Notification: Performance of SimCode: time 1.433e-06/0.3058, allocations: 0 / 450.2 MB, free: 3.227 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0423/0.3481, allocations: 16.35 MB / 466.6 MB, free: 3.086 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.45/12.8, allocations: 10.45 kB / 466.6 MB, free: 3.078 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.984996179002337]