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.001997/0.001997, allocations: 88.62 kB / 20.96 MB, free: 3.477 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.00216/0.00216, allocations: 149.4 kB / 24.26 MB, free: 184 kB / 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 1.451/1.451, allocations: 173.4 MB / 200.8 MB, free: 9.305 MB / 186.7 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: 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.804e-06/1.804e-06, allocations: 0 / 267.3 MB, free: 6.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.929e-05/4.11e-05, allocations: 2.312 kB / 267.3 MB, free: 6.742 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003431/0.003472, allocations: 1.861 MB / 269.2 MB, free: 4.867 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002033/0.005506, allocations: 1.125 MB / 270.3 MB, free: 3.734 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.432e-05/0.0056, allocations: 0 / 270.3 MB, free: 3.734 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001227/0.006827, allocations: 0.4904 MB / 270.8 MB, free: 3.242 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003008/0.007128, allocations: 199.3 kB / 271 MB, free: 3.047 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005075/0.007635, allocations: 159.3 kB / 271.1 MB, free: 2.891 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004023/0.008037, allocations: 230.9 kB / 271.3 MB, free: 2.668 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.134e-05/0.008129, allocations: 13.81 kB / 271.4 MB, free: 2.652 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002674/0.008396, allocations: 151.5 kB / 271.5 MB, free: 2.504 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003475/0.008744, allocations: 219.7 kB / 271.7 MB, free: 2.289 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.832e-05/0.008772, allocations: 4 kB / 271.7 MB, free: 2.285 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001741/0.008946, allocations: 63.84 kB / 271.8 MB, free: 2.223 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000251/0.009197, allocations: 263.3 kB / 272 MB, free: 1.965 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001897/0.009387, allocations: 143.4 kB / 272.2 MB, free: 1.824 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000958/0.01034, allocations: 0.7319 MB / 272.9 MB, free: 1.09 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.01035, allocations: 0 / 272.9 MB, free: 1.09 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.01035, allocations: 0 / 272.9 MB, free: 1.09 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.333e-06/0.01036, allocations: 7.938 kB / 272.9 MB, free: 1.082 MB / 250.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.003089/0.01345, allocations: 1.129 MB / 274.1 MB, free: 15.91 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/0.0135, allocations: 8.922 kB / 274.1 MB, free: 15.91 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002493/0.01375, allocations: 100.3 kB / 274.2 MB, free: 15.81 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001263/0.01501, allocations: 0.7063 MB / 274.9 MB, free: 15.07 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.922e-05/0.01503, allocations: 4.359 kB / 274.9 MB, free: 15.06 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.834e-05/0.01505, allocations: 384 / 274.9 MB, free: 15.06 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003243/0.01537, allocations: 122.1 kB / 275 MB, free: 14.94 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.01538, allocations: 192 / 275 MB, free: 14.94 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.726e-05/0.0154, allocations: 4.375 kB / 275 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.929e-06/0.01541, allocations: 7.938 kB / 275 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000386/0.01579, allocations: 139.9 kB / 275.1 MB, free: 14.79 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001427/0.01722, allocations: 0.755 MB / 275.9 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005059/0.01773, allocations: 206.4 kB / 276.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002003/0.01793, allocations: 80.8 kB / 276.2 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.187e-05/0.01795, allocations: 4 kB / 276.2 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.922e-05/0.01799, allocations: 38.5 kB / 276.2 MB, free: 13.66 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.01799, allocations: 0 / 276.2 MB, free: 13.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=3): time 0.0009493/0.01894, allocations: 344.9 kB / 276.6 MB, free: 13.32 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.577e-05/0.01899, allocations: 51.41 kB / 276.6 MB, free: 13.25 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002097/0.02109, allocations: 1.405 MB / 278 MB, free: 11.83 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.067e-05/0.02112, allocations: 29.7 kB / 278 MB, free: 11.79 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004244/0.02154, allocations: 380.4 kB / 278.4 MB, free: 11.42 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.959e-05/0.02158, allocations: 19.84 kB / 278.4 MB, free: 11.4 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.352e-05/0.02167, allocations: 21.7 kB / 278.5 MB, free: 11.37 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.02184, allocations: 313.9 kB / 278.8 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002019/0.02204, allocations: 71.94 kB / 278.8 MB, free: 10.99 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001828/0.02223, allocations: 71.94 kB / 278.9 MB, free: 10.92 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003713/0.0226, allocations: 144.8 kB / 279 MB, free: 10.77 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.0226, allocations: 0 / 279 MB, free: 10.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006758/0.02327, allocations: 277.3 kB / 279.3 MB, free: 10.5 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.524e-05/0.0233, allocations: 11.94 kB / 279.3 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.02331, allocations: 0 / 279.3 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.957e-05/0.02333, allocations: 0 / 279.3 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001976/0.02352, allocations: 15.92 kB / 279.3 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.192e-06/0.02353, allocations: 0 / 279.3 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002183/0.02375, allocations: 15.98 kB / 279.4 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.883e-05/0.02377, allocations: 3.984 kB / 279.4 MB, free: 10.45 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.0004114/0.02418, allocations: 337.7 kB / 279.7 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002098/0.02439, allocations: 103.3 kB / 279.8 MB, free: 10.01 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006885/0.02508, allocations: 273.4 kB / 280.1 MB, free: 9.73 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.064e-05/0.02509, allocations: 12 kB / 280.1 MB, free: 9.719 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.02509, allocations: 0 / 280.1 MB, free: 9.719 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-06/0.0251, allocations: 0 / 280.1 MB, free: 9.719 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007118/0.02581, allocations: 406 kB / 280.5 MB, free: 9.293 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.783e-06/0.02581, allocations: 4 kB / 280.5 MB, free: 9.289 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.023e-05/0.0259, allocations: 11.98 kB / 280.5 MB, free: 9.277 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.02591, allocations: 0 / 280.5 MB, free: 9.277 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.4e-05/0.02592, allocations: 3.938 kB / 280.5 MB, free: 9.273 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.02592, allocations: 3.938 kB / 280.5 MB, free: 9.27 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.02593, allocations: 4 kB / 280.5 MB, free: 9.266 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006017/0.02653, allocations: 327.3 kB / 280.8 MB, free: 8.93 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003357/0.02686, allocations: 151.4 kB / 281 MB, free: 8.781 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.813e-05/0.02693, allocations: 7.875 kB / 281 MB, free: 8.773 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002025/0.02713, allocations: 7.984 kB / 281 MB, free: 8.766 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.099e-05/0.0272, allocations: 7.984 kB / 281 MB, free: 8.758 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.458e-06/0.0272, allocations: 0 / 281 MB, free: 8.758 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001538/0.02874, allocations: 1.013 MB / 282 MB, free: 7.734 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02874, allocations: 0 / 282 MB, free: 7.734 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003829/0.02913, allocations: 71.94 kB / 282.1 MB, free: 7.664 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.0002654/0.02939, allocations: 111.3 kB / 282.2 MB, free: 7.543 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004555/0.02985, allocations: 135.8 kB / 282.3 MB, free: 7.41 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.02985, allocations: 0 / 282.3 MB, free: 7.41 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001877/0.03004, allocations: 55.95 kB / 282.4 MB, free: 7.355 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006668/0.0307, allocations: 107 kB / 282.5 MB, free: 7.25 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002284/0.03299, allocations: 1.392 MB / 283.9 MB, free: 5.824 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005383/0.03353, allocations: 404.1 kB / 284.3 MB, free: 5.406 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0007893/0.03432, allocations: 466.1 kB / 284.7 MB, free: 4.945 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001602/0.03448, allocations: 48.48 kB / 284.8 MB, free: 4.895 MB / 266.7 MB Notification: Performance of SimCode: time 1.754e-06/0.03448, allocations: 0 / 284.8 MB, free: 4.895 MB / 266.7 MB Notification: Performance of Templates: time 0.1319/0.1663, allocations: 8.005 MB / 292.8 MB, free: 30.29 MB / 266.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.554897940019146]