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.0008931/0.0008931, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.0008944/0.0008944, allocations: 145.2 kB / 25.59 MB, free: 8.918 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.9879/0.9879, allocations: 173.4 MB / 202.2 MB, free: 8.281 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 3.446e-06/3.446e-06, allocations: 4 kB / 269.2 MB, free: 9.797 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.387e-05/1.731e-05, allocations: 5.266 kB / 269.2 MB, free: 9.793 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002266/0.002284, allocations: 1.916 MB / 271.1 MB, free: 7.879 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001225/0.003509, allocations: 1.173 MB / 272.3 MB, free: 6.707 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.436e-05/0.003583, allocations: 1.156 kB / 272.3 MB, free: 6.707 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006944/0.004277, allocations: 0.4925 MB / 272.8 MB, free: 6.215 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000146/0.004423, allocations: 199.3 kB / 273 MB, free: 6.02 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002606/0.004684, allocations: 161.6 kB / 273.1 MB, free: 5.863 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002114/0.004895, allocations: 235 kB / 273.3 MB, free: 5.633 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.998e-05/0.004945, allocations: 13.73 kB / 273.4 MB, free: 5.617 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001529/0.005098, allocations: 155.6 kB / 273.5 MB, free: 5.465 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001933/0.005291, allocations: 213 kB / 273.7 MB, free: 5.258 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.867e-05/0.00531, allocations: 8 kB / 273.7 MB, free: 5.25 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001048/0.005415, allocations: 63.83 kB / 273.8 MB, free: 5.188 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001337/0.005549, allocations: 263.8 kB / 274 MB, free: 4.93 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001069/0.005656, allocations: 144.1 kB / 274.2 MB, free: 4.789 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004164/0.006072, allocations: 0.5063 MB / 274.7 MB, free: 4.281 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.663e-06/0.006074, allocations: 0 / 274.7 MB, free: 4.281 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.006074, allocations: 7.938 kB / 274.7 MB, free: 4.273 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.164e-06/0.006081, allocations: 0 / 274.7 MB, free: 4.273 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.001418/0.007499, allocations: 1.261 MB / 276 MB, free: 2.973 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.007532, allocations: 12.03 kB / 276 MB, free: 2.961 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001341/0.007667, allocations: 96.31 kB / 276.1 MB, free: 2.867 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000423/0.008089, allocations: 482.3 kB / 276.5 MB, free: 2.355 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.636e-05/0.008106, allocations: 384 / 276.5 MB, free: 2.355 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.187e-05/0.008118, allocations: 384 / 276.5 MB, free: 2.355 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001345/0.008252, allocations: 74.91 kB / 276.6 MB, free: 2.273 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.592e-06/0.008259, allocations: 192 / 276.6 MB, free: 2.273 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.00827, allocations: 4.375 kB / 276.6 MB, free: 2.27 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.008275, allocations: 3.938 kB / 276.6 MB, free: 2.266 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.644e-05/0.008332, allocations: 19.92 kB / 276.6 MB, free: 2.246 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005657/0.008897, allocations: 0.5399 MB / 277.2 MB, free: 1.68 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001395/0.009037, allocations: 51.05 kB / 277.2 MB, free: 1.617 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.25e-05/0.009069, allocations: 23.73 kB / 277.3 MB, free: 1.59 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.011e-05/0.009079, allocations: 0 / 277.3 MB, free: 1.59 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.818e-05/0.009097, allocations: 37.33 kB / 277.3 MB, free: 1.543 MB / 250.7 MB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.009098, allocations: 3.938 kB / 277.3 MB, free: 1.539 MB / 250.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002653/0.009364, allocations: 161 kB / 277.4 MB, free: 1.375 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.131e-05/0.009395, allocations: 51.41 kB / 277.5 MB, free: 1.312 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008199/0.01021, allocations: 1.103 MB / 278.6 MB, free: 192 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.917e-05/0.01023, allocations: 25.7 kB / 278.6 MB, free: 160 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003526/0.01059, allocations: 0.5149 MB / 279.1 MB, free: 15.64 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.918e-05/0.01062, allocations: 11.84 kB / 279.2 MB, free: 15.62 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.205e-05/0.01067, allocations: 31.36 kB / 279.2 MB, free: 15.59 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.01081, allocations: 484.4 kB / 279.7 MB, free: 15.11 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.004e-05/0.01084, allocations: 4 kB / 279.7 MB, free: 15.1 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.03e-05/0.01087, allocations: 11.98 kB / 279.7 MB, free: 15.09 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.31e-05/0.01094, allocations: 35.61 kB / 279.7 MB, free: 15.05 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.01094, allocations: 0 / 279.7 MB, free: 15.05 MB / 266.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002131/0.01116, allocations: 145.1 kB / 279.8 MB, free: 14.9 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.01117, allocations: 4 kB / 279.9 MB, free: 14.9 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.01118, allocations: 4.266 kB / 279.9 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.01119, allocations: 0 / 279.9 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.994e-05/0.01129, allocations: 15.98 kB / 279.9 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.407e-06/0.01129, allocations: 0 / 279.9 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.033e-05/0.01137, allocations: 8 kB / 279.9 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.718e-06/0.01138, allocations: 0 / 279.9 MB, free: 14.87 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.0001196/0.0115, allocations: 160.6 kB / 280 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001063/0.01161, allocations: 103.3 kB / 280.1 MB, free: 14.6 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002295/0.01184, allocations: 157.4 kB / 280.3 MB, free: 14.44 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.01184, allocations: 0 / 280.3 MB, free: 14.44 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.01185, allocations: 4 kB / 280.3 MB, free: 14.43 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.01185, allocations: 0 / 280.3 MB, free: 14.43 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003416/0.01219, allocations: 365.7 kB / 280.7 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.0122, allocations: 0 / 280.7 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.911e-05/0.01223, allocations: 11.98 kB / 280.7 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.01224, allocations: 4 kB / 280.7 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.095e-06/0.01224, allocations: 0 / 280.7 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.01225, allocations: 0 / 280.7 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.01225, allocations: 3.938 kB / 280.7 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000244/0.01249, allocations: 308.1 kB / 281 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001298/0.01262, allocations: 115.3 kB / 281.1 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.874e-05/0.01266, allocations: 12 kB / 281.1 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.89e-05/0.01274, allocations: 0 / 281.1 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.662e-05/0.01278, allocations: 11.92 kB / 281.1 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.432e-06/0.01278, allocations: 0 / 281.1 MB, free: 13.57 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000469/0.01325, allocations: 0.6069 MB / 281.7 MB, free: 12.96 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.01325, allocations: 0 / 281.7 MB, free: 12.96 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002166/0.01347, allocations: 63.94 kB / 281.8 MB, free: 12.89 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.0001346/0.0136, allocations: 111.3 kB / 281.9 MB, free: 12.77 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001068/0.01371, allocations: 39.58 kB / 281.9 MB, free: 12.73 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.01371, allocations: 0 / 281.9 MB, free: 12.73 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.571e-05/0.01376, allocations: 27.67 kB / 282 MB, free: 12.7 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003796/0.01414, allocations: 104.1 kB / 282.1 MB, free: 12.59 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001264/0.0154, allocations: 1.097 MB / 283.2 MB, free: 11.46 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001487/0.01555, allocations: 193.2 kB / 283.3 MB, free: 11.25 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003452/0.01589, allocations: 378.2 kB / 283.7 MB, free: 10.88 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001969/0.01609, allocations: 166.2 kB / 283.9 MB, free: 10.71 MB / 266.7 MB Notification: Performance of SimCode: time 7.71e-07/0.01609, allocations: 0 / 283.9 MB, free: 10.71 MB / 266.7 MB Notification: Performance of Templates: time 0.01126/0.02736, allocations: 8.64 MB / 292.5 MB, free: 2.164 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7429543919861317]