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.001033/0.001033, allocations: 84 kB / 21.43 MB, free: 3.137 MB / 18.57 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.004758/0.004758, allocations: 141.6 kB / 24.68 MB, free: 8.891 MB / 18.57 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 0.8486/0.8486, allocations: 173.4 MB / 201.2 MB, free: 9.453 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Electrical.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.322e-06/1.322e-06, allocations: 3.938 kB / 319.7 MB, free: 5.895 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.565e-05/2.697e-05, allocations: 6.219 kB / 319.7 MB, free: 5.887 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002572/0.002599, allocations: 1.835 MB / 321.5 MB, free: 4.035 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00134/0.003939, allocations: 1.121 MB / 322.6 MB, free: 2.906 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001166/0.004056, allocations: 7.938 kB / 322.6 MB, free: 2.898 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001043/0.005098, allocations: 498.3 kB / 323.1 MB, free: 2.41 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002143/0.005312, allocations: 195.3 kB / 323.3 MB, free: 2.219 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004423/0.005755, allocations: 167.2 kB / 323.5 MB, free: 2.055 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007711/0.006526, allocations: 235 kB / 323.7 MB, free: 1.824 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001026/0.006628, allocations: 9.797 kB / 323.7 MB, free: 1.812 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000219/0.006847, allocations: 151.6 kB / 323.9 MB, free: 1.664 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002129/0.00706, allocations: 211.6 kB / 324.1 MB, free: 1.457 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.932e-05/0.00708, allocations: 8 kB / 324.1 MB, free: 1.449 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001292/0.007209, allocations: 63.89 kB / 324.1 MB, free: 1.387 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001351/0.007344, allocations: 267.3 kB / 324.4 MB, free: 1.125 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.435e-05/0.007438, allocations: 135.5 kB / 324.5 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005321/0.00797, allocations: 0.7435 MB / 325.3 MB, free: 252 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.007973, allocations: 0 / 325.3 MB, free: 252 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.007974, allocations: 0 / 325.3 MB, free: 252 kB / 282.7 MB Notification: Performance of Transformations before backend: time 1.093e-05/0.007985, allocations: 4 kB / 325.3 MB, free: 248 kB / 282.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.001555/0.00954, allocations: 1.136 MB / 326.4 MB, free: 15.07 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.009576, allocations: 8.922 kB / 326.4 MB, free: 15.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001293/0.009706, allocations: 96.31 kB / 326.5 MB, free: 14.97 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006397/0.01035, allocations: 0.6947 MB / 327.2 MB, free: 14.24 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.241e-05/0.01036, allocations: 384 / 327.2 MB, free: 14.24 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.63e-05/0.01037, allocations: 8.375 kB / 327.2 MB, free: 14.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001894/0.01056, allocations: 118.1 kB / 327.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/0.01057, allocations: 192 / 327.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.346e-05/0.01058, allocations: 4.375 kB / 327.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.01059, allocations: 3.938 kB / 327.3 MB, free: 14.1 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002022/0.01079, allocations: 147.8 kB / 327.5 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006664/0.01146, allocations: 0.6886 MB / 328.2 MB, free: 13.24 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001325/0.01159, allocations: 86.52 kB / 328.3 MB, free: 13.14 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.932e-05/0.01169, allocations: 72.89 kB / 328.3 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.322e-05/0.0117, allocations: 0 / 328.3 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.003e-05/0.01172, allocations: 42.5 kB / 328.4 MB, free: 13.02 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 7.91e-07/0.01172, allocations: 0 / 328.4 MB, free: 13.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 0.0004749/0.0122, allocations: 324.9 kB / 328.7 MB, free: 12.7 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.756e-05/0.01223, allocations: 55.41 kB / 328.7 MB, free: 12.63 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001055/0.01328, allocations: 1.405 MB / 330.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.533e-05/0.0133, allocations: 29.7 kB / 330.2 MB, free: 11.17 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002099/0.01351, allocations: 384.4 kB / 330.6 MB, free: 10.79 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.472e-05/0.01353, allocations: 15.84 kB / 330.6 MB, free: 10.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.067e-05/0.01357, allocations: 25.7 kB / 330.6 MB, free: 10.74 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0003289/0.0139, allocations: 306 kB / 330.9 MB, free: 10.44 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.864e-05/0.014, allocations: 67.94 kB / 331 MB, free: 10.37 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001062/0.01411, allocations: 86.52 kB / 331 MB, free: 10.28 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001934/0.0143, allocations: 162.3 kB / 331.2 MB, free: 10.11 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.0143, allocations: 7.938 kB / 331.2 MB, free: 10.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003173/0.01462, allocations: 268.9 kB / 331.5 MB, free: 9.832 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.01463, allocations: 7.938 kB / 331.5 MB, free: 9.824 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.01464, allocations: 0 / 331.5 MB, free: 9.824 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.01465, allocations: 4.094 kB / 331.5 MB, free: 9.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001004/0.01475, allocations: 15.98 kB / 331.5 MB, free: 9.805 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.01475, allocations: 0 / 331.5 MB, free: 9.805 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.368e-05/0.01485, allocations: 15.92 kB / 331.5 MB, free: 9.789 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.035e-05/0.01486, allocations: 0 / 331.5 MB, free: 9.789 MB / 298.7 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.0002426/0.0151, allocations: 341.7 kB / 331.9 MB, free: 9.445 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.893e-05/0.0152, allocations: 95.33 kB / 331.9 MB, free: 9.352 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003503/0.01555, allocations: 281.7 kB / 332.2 MB, free: 9.066 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.01555, allocations: 3.984 kB / 332.2 MB, free: 9.062 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.01556, allocations: 0 / 332.2 MB, free: 9.062 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.01556, allocations: 4 kB / 332.2 MB, free: 9.059 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000308/0.01587, allocations: 406 kB / 332.6 MB, free: 8.633 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.01588, allocations: 4 kB / 332.6 MB, free: 8.629 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.163e-05/0.01592, allocations: 19.97 kB / 332.6 MB, free: 8.609 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.01592, allocations: 0 / 332.6 MB, free: 8.609 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.01593, allocations: 3.938 kB / 332.7 MB, free: 8.605 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.71e-07/0.01593, allocations: 0 / 332.7 MB, free: 8.605 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.854e-06/0.01594, allocations: 3.938 kB / 332.7 MB, free: 8.602 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002816/0.01622, allocations: 315.4 kB / 333 MB, free: 8.277 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001786/0.0164, allocations: 155.4 kB / 333.1 MB, free: 8.125 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.524e-05/0.01643, allocations: 3.938 kB / 333.1 MB, free: 8.121 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.347e-05/0.01653, allocations: 11.98 kB / 333.1 MB, free: 8.109 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.778e-05/0.01656, allocations: 8 kB / 333.1 MB, free: 8.102 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.731e-06/0.01657, allocations: 3.984 kB / 333.1 MB, free: 8.098 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008269/0.0174, allocations: 1.013 MB / 334.2 MB, free: 7.074 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0174, allocations: 0 / 334.2 MB, free: 7.074 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002227/0.01762, allocations: 63.94 kB / 334.2 MB, free: 7.012 MB / 298.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.0001598/0.01778, allocations: 107.2 kB / 334.3 MB, free: 6.895 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002363/0.01802, allocations: 127.8 kB / 334.4 MB, free: 6.77 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.01802, allocations: 3.938 kB / 334.5 MB, free: 6.766 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.117e-05/0.01811, allocations: 55.95 kB / 334.5 MB, free: 6.711 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003726/0.01848, allocations: 108.1 kB / 334.6 MB, free: 6.609 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001253/0.01973, allocations: 1.438 MB / 336.1 MB, free: 5.133 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002704/0.02001, allocations: 396.1 kB / 336.4 MB, free: 4.723 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.271e-05/0.02009, allocations: 44.48 kB / 336.5 MB, free: 4.68 MB / 298.7 MB Notification: Performance of SimCode: time 6.21e-07/0.02009, allocations: 0 / 336.5 MB, free: 4.68 MB / 298.7 MB Notification: Performance of Templates: time 0.009256/0.02934, allocations: 9.461 MB / 345.9 MB, free: 11.23 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins/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: 4.560201859101653]