Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001866/0.001866, allocations: 96.25 kB / 20.96 MB, free: 3.461 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002151/0.002151, allocations: 156.9 kB / 24.27 MB, free: 164 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.524/1.524, allocations: 177 MB / 204.4 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.234e-06/2.234e-06, allocations: 0 / 272.2 MB, free: 1.844 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.154e-05/3.377e-05, allocations: 5.266 kB / 272.2 MB, free: 1.84 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.005065/0.005099, allocations: 1.864 MB / 274 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002689/0.007788, allocations: 1.121 MB / 275.2 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001145/0.007902, allocations: 3.938 kB / 275.2 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001588/0.00949, allocations: 0.4982 MB / 275.7 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004016/0.009892, allocations: 199.3 kB / 275.9 MB, free: 14.13 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006161/0.01051, allocations: 155.2 kB / 276 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004844/0.01099, allocations: 238.8 kB / 276.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000119/0.01111, allocations: 9.812 kB / 276.3 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000389/0.0115, allocations: 147.6 kB / 276.4 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004135/0.01191, allocations: 215.6 kB / 276.6 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.625e-05/0.01195, allocations: 8 kB / 276.6 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002236/0.01217, allocations: 67.83 kB / 276.7 MB, free: 13.31 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003562/0.01253, allocations: 263.3 kB / 276.9 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002638/0.01279, allocations: 139.5 kB / 277.1 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001353/0.01415, allocations: 0.7357 MB / 277.8 MB, free: 12.18 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.608e-06/0.01416, allocations: 4 kB / 277.8 MB, free: 12.18 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.01416, allocations: 0 / 277.8 MB, free: 12.18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.085e-05/0.01417, allocations: 0 / 277.8 MB, free: 12.18 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.003952/0.01812, allocations: 1.129 MB / 278.9 MB, free: 11.01 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.496e-05/0.01817, allocations: 11.98 kB / 279 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003437/0.01852, allocations: 96.33 kB / 279.1 MB, free: 10.91 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001744/0.02026, allocations: 0.718 MB / 279.8 MB, free: 10.15 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.636e-05/0.02029, allocations: 8.312 kB / 279.8 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.465e-05/0.02031, allocations: 384 / 279.8 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004344/0.02075, allocations: 118.2 kB / 279.9 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.02076, allocations: 192 / 279.9 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.321e-05/0.02078, allocations: 384 / 279.9 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.02079, allocations: 3.938 kB / 279.9 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005502/0.02134, allocations: 147.9 kB / 280 MB, free: 9.871 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002119/0.02346, allocations: 0.7511 MB / 280.8 MB, free: 9.09 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006904/0.02415, allocations: 206.4 kB / 281 MB, free: 8.879 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002647/0.02442, allocations: 76.8 kB / 281.1 MB, free: 8.801 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.586e-05/0.02444, allocations: 4 kB / 281.1 MB, free: 8.797 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.664e-05/0.02449, allocations: 34.5 kB / 281.1 MB, free: 8.754 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 2.144e-06/0.02449, allocations: 0 / 281.1 MB, free: 8.754 MB / 266.7 MB Notification: Performance of matching and sorting (n=3): time 0.001356/0.02585, allocations: 345.1 kB / 281.4 MB, free: 8.41 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.642e-05/0.02592, allocations: 55.39 kB / 281.5 MB, free: 8.344 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002862/0.02879, allocations: 1.401 MB / 282.9 MB, free: 6.922 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.764e-05/0.02882, allocations: 25.7 kB / 282.9 MB, free: 6.891 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005614/0.02939, allocations: 388.4 kB / 283.3 MB, free: 6.508 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.02e-05/0.02944, allocations: 15.89 kB / 283.3 MB, free: 6.492 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.241e-05/0.02953, allocations: 21.7 kB / 283.3 MB, free: 6.465 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002127/0.02974, allocations: 306 kB / 283.6 MB, free: 6.16 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002671/0.03001, allocations: 75.94 kB / 283.7 MB, free: 6.086 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002552/0.03026, allocations: 75.92 kB / 283.8 MB, free: 6.012 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005381/0.0308, allocations: 152.8 kB / 283.9 MB, free: 5.859 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.0308, allocations: 0 / 283.9 MB, free: 5.859 MB / 266.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000961/0.03177, allocations: 272.9 kB / 284.2 MB, free: 5.586 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.695e-05/0.03179, allocations: 7.938 kB / 284.2 MB, free: 5.578 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.0318, allocations: 0 / 284.2 MB, free: 5.578 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.873e-05/0.03183, allocations: 8 kB / 284.2 MB, free: 5.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002628/0.03209, allocations: 11.98 kB / 284.2 MB, free: 5.559 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.244e-06/0.0321, allocations: 0 / 284.2 MB, free: 5.559 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003089/0.03241, allocations: 15.88 kB / 284.2 MB, free: 5.543 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.653e-05/0.03243, allocations: 4 kB / 284.3 MB, free: 5.539 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.0005936/0.03303, allocations: 333.7 kB / 284.6 MB, free: 5.203 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003022/0.03333, allocations: 99.36 kB / 284.7 MB, free: 5.105 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009183/0.03425, allocations: 277.6 kB / 284.9 MB, free: 4.824 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.215e-05/0.03426, allocations: 4.031 kB / 285 MB, free: 4.82 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.03427, allocations: 0 / 285 MB, free: 4.82 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.03427, allocations: 3.938 kB / 285 MB, free: 4.816 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008472/0.03512, allocations: 406 kB / 285.4 MB, free: 4.391 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.03512, allocations: 4 kB / 285.4 MB, free: 4.387 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000109/0.03523, allocations: 11.98 kB / 285.4 MB, free: 4.375 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.346e-06/0.03524, allocations: 4 kB / 285.4 MB, free: 4.371 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.19e-05/0.03526, allocations: 7.938 kB / 285.4 MB, free: 4.363 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.03526, allocations: 0 / 285.4 MB, free: 4.363 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.03526, allocations: 0 / 285.4 MB, free: 4.363 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008519/0.03612, allocations: 323.4 kB / 285.7 MB, free: 4.031 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004756/0.03659, allocations: 151.3 kB / 285.8 MB, free: 3.883 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.0367, allocations: 7.938 kB / 285.9 MB, free: 3.875 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003078/0.037, allocations: 15.98 kB / 285.9 MB, free: 3.859 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.333e-05/0.03707, allocations: 0 / 285.9 MB, free: 3.859 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.686e-05/0.03708, allocations: 4 kB / 285.9 MB, free: 3.855 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.002136/0.03922, allocations: 1.021 MB / 286.9 MB, free: 2.824 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.03922, allocations: 3.938 kB / 286.9 MB, free: 2.82 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005662/0.03979, allocations: 63.94 kB / 287 MB, free: 2.758 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.0002901/0.04008, allocations: 111.2 kB / 287.1 MB, free: 2.641 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005821/0.04066, allocations: 127.9 kB / 287.2 MB, free: 2.516 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.04066, allocations: 0 / 287.2 MB, free: 2.516 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002475/0.04091, allocations: 51.95 kB / 287.2 MB, free: 2.465 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000962/0.04187, allocations: 104.1 kB / 287.3 MB, free: 2.359 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003134/0.045, allocations: 1.389 MB / 288.7 MB, free: 0.9375 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007519/0.04576, allocations: 404.1 kB / 289.1 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0009062/0.04666, allocations: 474.3 kB / 289.6 MB, free: 52 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001332/0.04679, allocations: 40.48 kB / 289.6 MB, free: 12 kB / 266.7 MB Notification: Performance of SimCode: time 1.192e-06/0.0468, allocations: 7.875 kB / 289.6 MB, free: 4 kB / 266.7 MB Notification: Performance of Templates: time 0.137/0.1838, allocations: 7.971 MB / 297.6 MB, free: 26.2 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.6697391089983284]