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.001765/0.001765, allocations: 101.5 kB / 21.21 MB, free: 0.6484 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.00234/0.00234, allocations: 186.1 kB / 24.49 MB, free: 3.961 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.356/1.356, allocations: 225.7 MB / 253.3 MB, free: 12.87 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.001485/0.001485, allocations: 47.92 kB / 371.2 MB, free: 9.723 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2547/0.2562, allocations: 52.19 MB / 423.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003178/0.2594, allocations: 1.847 MB / 425.2 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001692/0.2611, allocations: 1.121 MB / 426.3 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.498e-05/0.2612, allocations: 3.938 kB / 426.3 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001004/0.2622, allocations: 482.6 kB / 426.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002399/0.2624, allocations: 199.4 kB / 427 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004386/0.2629, allocations: 167.4 kB / 427.1 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003124/0.2632, allocations: 219.1 kB / 427.4 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.084e-05/0.2633, allocations: 25.72 kB / 427.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001755/0.2635, allocations: 115.6 kB / 427.5 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002911/0.2637, allocations: 239.4 kB / 427.7 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.509e-05/0.2638, allocations: 4 kB / 427.7 MB, free: 10 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001538/0.2639, allocations: 59.97 kB / 427.8 MB, free: 9.945 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002099/0.2641, allocations: 267.3 kB / 428.1 MB, free: 9.684 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000196/0.2643, allocations: 202.4 kB / 428.3 MB, free: 9.484 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007758/0.2651, allocations: 0.7856 MB / 429 MB, free: 8.695 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.2651, allocations: 0 / 429 MB, free: 8.695 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2651, allocations: 0 / 429 MB, free: 8.695 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.172e-05/0.2651, allocations: 4 kB / 429 MB, free: 8.691 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.002592/0.2677, allocations: 1.137 MB / 430.2 MB, free: 7.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.2678, allocations: 8.031 kB / 430.2 MB, free: 7.512 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.838e-05/0.2678, allocations: 192 / 430.2 MB, free: 7.512 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.348e-05/0.2678, allocations: 34.75 kB / 430.2 MB, free: 7.469 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001863/0.268, allocations: 96.36 kB / 430.3 MB, free: 7.375 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009964/0.269, allocations: 0.6993 MB / 431 MB, free: 6.637 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.322e-05/0.269, allocations: 384 / 431 MB, free: 6.637 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.895e-05/0.269, allocations: 384 / 431 MB, free: 6.637 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002907/0.2693, allocations: 125.5 kB / 431.1 MB, free: 6.508 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.136e-06/0.2693, allocations: 0 / 431.1 MB, free: 6.508 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.463e-05/0.2694, allocations: 3.938 kB / 431.1 MB, free: 6.504 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.197e-06/0.2694, allocations: 0 / 431.1 MB, free: 6.504 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003447/0.2697, allocations: 151.8 kB / 431.3 MB, free: 6.355 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009821/0.2707, allocations: 0.7275 MB / 432 MB, free: 5.586 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002025/0.2709, allocations: 78.53 kB / 432.1 MB, free: 5.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001666/0.2711, allocations: 72.89 kB / 432.2 MB, free: 5.426 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.2711, allocations: 3.938 kB / 432.2 MB, free: 5.422 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.157e-05/0.2711, allocations: 34.56 kB / 432.2 MB, free: 5.379 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.202e-06/0.2711, allocations: 0 / 432.2 MB, free: 5.379 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.000801/0.2719, allocations: 332.9 kB / 432.5 MB, free: 5.047 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.336e-05/0.272, allocations: 55.41 kB / 432.6 MB, free: 4.98 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001706/0.2737, allocations: 1.401 MB / 434 MB, free: 3.559 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.584e-05/0.2737, allocations: 29.7 kB / 434 MB, free: 3.523 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003465/0.274, allocations: 384.4 kB / 434.4 MB, free: 3.145 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.197e-05/0.2741, allocations: 11.91 kB / 434.4 MB, free: 3.133 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.441e-05/0.2741, allocations: 17.72 kB / 434.4 MB, free: 3.109 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.2743, allocations: 313.9 kB / 434.7 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001791/0.2744, allocations: 75.95 kB / 434.8 MB, free: 2.723 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000185/0.2746, allocations: 90.45 kB / 434.9 MB, free: 2.625 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003383/0.275, allocations: 158.5 kB / 435 MB, free: 2.461 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.275, allocations: 0 / 435 MB, free: 2.461 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000598/0.2756, allocations: 269.3 kB / 435.3 MB, free: 2.191 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.2756, allocations: 4 kB / 435.3 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.2756, allocations: 0 / 435.3 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.2756, allocations: 3.984 kB / 435.3 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000194/0.2758, allocations: 19.92 kB / 435.3 MB, free: 2.164 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/0.2758, allocations: 0 / 435.3 MB, free: 2.164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001957/0.276, allocations: 11.98 kB / 435.3 MB, free: 2.152 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.977e-05/0.276, allocations: 7.969 kB / 435.3 MB, free: 2.145 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.0003407/0.2764, allocations: 345.7 kB / 435.7 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001895/0.2765, allocations: 95.38 kB / 435.8 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005988/0.2771, allocations: 269.4 kB / 436 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.2772, allocations: 4 kB / 436 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.2772, allocations: 0 / 436 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.2772, allocations: 4 kB / 436.1 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005133/0.2777, allocations: 437.9 kB / 436.5 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.2777, allocations: 7.875 kB / 436.5 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.257e-05/0.2778, allocations: 11.98 kB / 436.5 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.2778, allocations: 0 / 436.5 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.314e-05/0.2778, allocations: 3.984 kB / 436.5 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.2778, allocations: 4 kB / 436.5 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.2778, allocations: 0 / 436.5 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005138/0.2783, allocations: 331.2 kB / 436.8 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003025/0.2786, allocations: 151.3 kB / 437 MB, free: 448 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.582e-05/0.2787, allocations: 0 / 437 MB, free: 448 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001991/0.2789, allocations: 12 kB / 437 MB, free: 436 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.478e-05/0.2789, allocations: 7.984 kB / 437 MB, free: 428 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-06/0.2789, allocations: 0 / 437 MB, free: 428 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001259/0.2802, allocations: 1.017 MB / 438 MB, free: 15.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2802, allocations: 0 / 438 MB, free: 15.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003303/0.2805, allocations: 63.98 kB / 438.1 MB, free: 15.33 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.0008763/0.2814, allocations: 0.8681 MB / 438.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003721/0.2818, allocations: 135.8 kB / 439.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2818, allocations: 192 / 439.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001607/0.2819, allocations: 51.97 kB / 439.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005663/0.2825, allocations: 92.2 kB / 439.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01149/0.294, allocations: 8.803 MB / 448 MB, free: 5.207 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004408/0.2944, allocations: 407.9 kB / 448.4 MB, free: 4.789 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006504/0.2951, allocations: 470.1 kB / 448.9 MB, free: 4.324 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003434/0.2954, allocations: 243.4 kB / 449.1 MB, free: 4.086 MB / 350.1 MB Notification: Performance of SimCode: time 1.342e-06/0.2954, allocations: 4 kB / 449.1 MB, free: 4.082 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04275/0.3382, allocations: 16.95 MB / 466.1 MB, free: 3.402 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.42/12.75, allocations: 6.719 kB / 466.1 MB, free: 3.398 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.87383217504248]