Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002302/0.002302, allocations: 95.61 kB / 20.96 MB, free: 3.461 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001937/0.001937, allocations: 165.3 kB / 24.27 MB, free: 152 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.6/1.6, allocations: 177.1 MB / 204.6 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance") translateModel(Modelica.Electrical.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.843e-06/1.843e-06, allocations: 0 / 272.3 MB, free: 1.863 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.379e-05/3.564e-05, allocations: 2.312 kB / 272.3 MB, free: 1.859 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003454/0.003489, allocations: 1.912 MB / 274.2 MB, free: 15.94 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002254/0.005743, allocations: 1.207 MB / 275.4 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.027e-05/0.005833, allocations: 0 / 275.4 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00119/0.007023, allocations: 0.4904 MB / 275.9 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002661/0.007289, allocations: 203.3 kB / 276.1 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004739/0.007763, allocations: 163.2 kB / 276.3 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003758/0.008139, allocations: 227 kB / 276.5 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.016e-05/0.008219, allocations: 9.812 kB / 276.5 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002892/0.008508, allocations: 151.6 kB / 276.6 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003029/0.008811, allocations: 215.6 kB / 276.9 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.308e-05/0.008844, allocations: 8 kB / 276.9 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001647/0.009009, allocations: 59.89 kB / 276.9 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002543/0.009263, allocations: 267.3 kB / 277.2 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000196/0.009459, allocations: 147.4 kB / 277.3 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009342/0.01039, allocations: 0.7357 MB / 278.1 MB, free: 12.07 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.0104, allocations: 0 / 278.1 MB, free: 12.07 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.0104, allocations: 0 / 278.1 MB, free: 12.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.01041, allocations: 0 / 278.1 MB, free: 12.07 MB / 266.7 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.002917/0.01332, allocations: 1.292 MB / 279.3 MB, free: 10.74 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.01337, allocations: 12.03 kB / 279.4 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002217/0.01359, allocations: 96.31 kB / 279.5 MB, free: 10.63 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001035/0.01462, allocations: 0.5295 MB / 280 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.487e-05/0.01464, allocations: 8.312 kB / 280 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.938e-05/0.01466, allocations: 8.375 kB / 280 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002702/0.01493, allocations: 110.1 kB / 280.1 MB, free: 9.934 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.01494, allocations: 4.125 kB / 280.1 MB, free: 9.93 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.531e-05/0.01495, allocations: 4.375 kB / 280.1 MB, free: 9.926 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.01496, allocations: 3.938 kB / 280.1 MB, free: 9.922 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002983/0.01526, allocations: 127.9 kB / 280.2 MB, free: 9.797 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00159/0.01685, allocations: 0.8448 MB / 281.1 MB, free: 8.918 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004663/0.01731, allocations: 206.9 kB / 281.3 MB, free: 8.703 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001556/0.01747, allocations: 75.7 kB / 281.4 MB, free: 8.625 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.019e-05/0.01749, allocations: 3.938 kB / 281.4 MB, free: 8.621 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.301e-05/0.01752, allocations: 37.33 kB / 281.4 MB, free: 8.574 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 1.253e-06/0.01752, allocations: 4 kB / 281.4 MB, free: 8.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=3): time 0.00077/0.01829, allocations: 313 kB / 281.7 MB, free: 8.258 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.737e-05/0.01834, allocations: 55.39 kB / 281.8 MB, free: 8.191 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001838/0.02018, allocations: 1.216 MB / 283 MB, free: 6.953 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.847e-05/0.02021, allocations: 29.7 kB / 283 MB, free: 6.918 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005499/0.02076, allocations: 0.5189 MB / 283.5 MB, free: 6.395 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.845e-05/0.02078, allocations: 15.89 kB / 283.6 MB, free: 6.379 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.144e-05/0.02086, allocations: 31.36 kB / 283.6 MB, free: 6.34 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002409/0.0211, allocations: 484.4 kB / 284.1 MB, free: 5.859 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001539/0.02125, allocations: 67.89 kB / 284.1 MB, free: 5.793 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001359/0.02139, allocations: 59.95 kB / 284.2 MB, free: 5.734 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002973/0.02168, allocations: 139.6 kB / 284.3 MB, free: 5.594 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.02169, allocations: 0 / 284.3 MB, free: 5.594 MB / 266.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005237/0.02221, allocations: 253 kB / 284.6 MB, free: 5.34 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.02223, allocations: 11.94 kB / 284.6 MB, free: 5.328 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.02223, allocations: 4 kB / 284.6 MB, free: 5.324 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.02225, allocations: 0 / 284.6 MB, free: 5.324 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001591/0.02241, allocations: 11.98 kB / 284.6 MB, free: 5.312 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.87e-06/0.02241, allocations: 0 / 284.6 MB, free: 5.312 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000169/0.02258, allocations: 15.89 kB / 284.6 MB, free: 5.297 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.288e-05/0.0226, allocations: 3.938 kB / 284.6 MB, free: 5.293 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 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.0001874/0.02279, allocations: 176.6 kB / 284.8 MB, free: 5.109 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001968/0.02299, allocations: 99.36 kB / 284.9 MB, free: 5.012 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005423/0.02353, allocations: 225.8 kB / 285.1 MB, free: 4.781 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-06/0.02354, allocations: 4 kB / 285.1 MB, free: 4.777 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.02354, allocations: 0 / 285.1 MB, free: 4.777 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.02355, allocations: 0 / 285.1 MB, free: 4.777 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008429/0.02439, allocations: 0.5917 MB / 285.7 MB, free: 4.152 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.02439, allocations: 0 / 285.7 MB, free: 4.152 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.314e-05/0.02446, allocations: 11.98 kB / 285.7 MB, free: 4.141 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.499e-06/0.02446, allocations: 4 kB / 285.7 MB, free: 4.137 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.303e-05/0.02447, allocations: 3.938 kB / 285.7 MB, free: 4.133 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.02447, allocations: 0 / 285.7 MB, free: 4.133 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.02448, allocations: 0 / 285.7 MB, free: 4.133 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005314/0.02501, allocations: 364 kB / 286.1 MB, free: 3.758 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004095/0.02542, allocations: 139.3 kB / 286.2 MB, free: 3.621 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.795e-05/0.02548, allocations: 3.938 kB / 286.2 MB, free: 3.617 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001801/0.02566, allocations: 7.984 kB / 286.2 MB, free: 3.609 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.839e-05/0.02571, allocations: 8 kB / 286.2 MB, free: 3.602 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-06/0.02572, allocations: 4 kB / 286.2 MB, free: 3.598 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001049/0.02677, allocations: 0.7125 MB / 286.9 MB, free: 2.875 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.02677, allocations: 0 / 286.9 MB, free: 2.875 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.00033/0.0271, allocations: 63.94 kB / 287 MB, free: 2.812 MB / 266.7 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.0002135/0.02731, allocations: 107.2 kB / 287.1 MB, free: 2.699 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003564/0.02767, allocations: 123.5 kB / 287.2 MB, free: 2.574 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.02767, allocations: 4 kB / 287.2 MB, free: 2.57 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001493/0.02782, allocations: 55.66 kB / 287.3 MB, free: 2.512 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005952/0.02842, allocations: 111.8 kB / 287.4 MB, free: 2.402 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001699/0.03012, allocations: 1.14 MB / 288.5 MB, free: 1.227 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004608/0.03058, allocations: 368.1 kB / 288.9 MB, free: 0.8438 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0007281/0.0313, allocations: 422.1 kB / 289.3 MB, free: 436 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001307/0.03144, allocations: 40.48 kB / 289.3 MB, free: 396 kB / 266.7 MB Notification: Performance of SimCode: time 6.61e-07/0.03144, allocations: 4 kB / 289.4 MB, free: 392 kB / 266.7 MB Notification: Performance of Templates: time 0.1272/0.1586, allocations: 7.949 MB / 297.3 MB, free: 25.77 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 4.680380622972734]