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.001327/0.001327, allocations: 89.14 kB / 20.68 MB, free: 1.02 MB / 14.72 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.001535/0.001535, allocations: 158.8 kB / 23.95 MB, free: 4.152 MB / 14.72 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.474/1.474, allocations: 177 MB / 204.1 MB, free: 9.168 MB / 190.1 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 1.963e-06/1.963e-06, allocations: 0.75 kB / 325 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.418e-05/2.614e-05, allocations: 2.281 kB / 325 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003428/0.003454, allocations: 1.864 MB / 326.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002023/0.005477, allocations: 1.141 MB / 328 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.961e-05/0.005567, allocations: 1 kB / 328 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001259/0.006826, allocations: 498.4 kB / 328.5 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003172/0.007143, allocations: 199.6 kB / 328.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000508/0.007651, allocations: 163 kB / 328.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004023/0.008053, allocations: 227.3 kB / 329.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.433e-05/0.008148, allocations: 8.141 kB / 329.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003096/0.008457, allocations: 151.9 kB / 329.2 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003748/0.008832, allocations: 218.2 kB / 329.4 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.987e-05/0.008862, allocations: 7.281 kB / 329.4 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001547/0.009016, allocations: 60.62 kB / 329.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002335/0.00925, allocations: 266.8 kB / 329.8 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001814/0.009431, allocations: 141.2 kB / 329.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008837/0.01032, allocations: 0.7345 MB / 330.6 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.01032, allocations: 0 / 330.6 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.01032, allocations: 1 kB / 330.6 MB, free: 13.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.479e-05/0.01033, allocations: 0 / 330.6 MB, free: 13.39 MB / 302.1 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.003073/0.01341, allocations: 1.122 MB / 331.8 MB, free: 12.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.01345, allocations: 12.77 kB / 331.8 MB, free: 12.53 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002249/0.01368, allocations: 101 kB / 331.9 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001155/0.01483, allocations: 0.7062 MB / 332.6 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.546e-06/0.01484, allocations: 1.656 kB / 332.6 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.943e-05/0.01486, allocations: 1.438 kB / 332.6 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003176/0.01518, allocations: 117.5 kB / 332.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.01519, allocations: 192 / 332.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.727e-05/0.01521, allocations: 384 / 332.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.225e-06/0.01522, allocations: 5.156 kB / 332.7 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004072/0.01562, allocations: 142.8 kB / 332.8 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001104/0.01673, allocations: 0.6937 MB / 333.5 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002329/0.01696, allocations: 84.95 kB / 333.6 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002106/0.01717, allocations: 75.61 kB / 333.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.784e-05/0.01719, allocations: 0 / 333.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.918e-05/0.01723, allocations: 37.09 kB / 333.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.01723, allocations: 0 / 333.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.001011/0.01824, allocations: 335.2 kB / 334 MB, free: 11.05 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.399e-05/0.01828, allocations: 51.41 kB / 334.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002013/0.0203, allocations: 1.407 MB / 335.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.896e-05/0.02033, allocations: 29.64 kB / 335.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005428/0.02087, allocations: 388.2 kB / 335.9 MB, free: 9.977 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.568e-05/0.0209, allocations: 12.92 kB / 335.9 MB, free: 9.965 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.548e-05/0.02098, allocations: 19.77 kB / 335.9 MB, free: 9.941 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001787/0.02116, allocations: 314 kB / 336.3 MB, free: 9.629 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001887/0.02135, allocations: 59.95 kB / 336.3 MB, free: 9.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002153/0.02156, allocations: 90.52 kB / 336.4 MB, free: 9.473 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003856/0.02195, allocations: 158.4 kB / 336.6 MB, free: 9.309 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.02195, allocations: 0 / 336.6 MB, free: 9.309 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006769/0.02263, allocations: 268.9 kB / 336.8 MB, free: 9.039 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/0.02265, allocations: 12.03 kB / 336.8 MB, free: 9.027 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.02266, allocations: 0 / 336.8 MB, free: 9.027 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.037e-05/0.02268, allocations: 3.938 kB / 336.8 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000208/0.02289, allocations: 15.98 kB / 336.8 MB, free: 9.008 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.0229, allocations: 0 / 336.8 MB, free: 9.008 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002327/0.02313, allocations: 15.94 kB / 336.9 MB, free: 8.992 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.743e-05/0.02315, allocations: 0 / 336.9 MB, free: 8.992 MB / 302.1 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.0004202/0.02357, allocations: 345.7 kB / 337.2 MB, free: 8.645 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000208/0.02377, allocations: 95.64 kB / 337.3 MB, free: 8.551 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007139/0.02449, allocations: 281.3 kB / 337.6 MB, free: 8.266 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.279e-06/0.02449, allocations: 0 / 337.6 MB, free: 8.266 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.0245, allocations: 0 / 337.6 MB, free: 8.266 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.0245, allocations: 4 kB / 337.6 MB, free: 8.262 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005777/0.02508, allocations: 410 kB / 338 MB, free: 7.832 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.02508, allocations: 4 kB / 338 MB, free: 7.828 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.19e-05/0.02517, allocations: 7.984 kB / 338 MB, free: 7.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.813e-06/0.02517, allocations: 4 kB / 338 MB, free: 7.816 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.664e-05/0.02519, allocations: 3.938 kB / 338 MB, free: 7.812 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.02519, allocations: 0 / 338 MB, free: 7.812 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.02519, allocations: 0 / 338 MB, free: 7.812 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005675/0.02576, allocations: 327.3 kB / 338.3 MB, free: 7.477 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003206/0.02608, allocations: 151.4 kB / 338.5 MB, free: 7.328 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.992e-05/0.02616, allocations: 7.938 kB / 338.5 MB, free: 7.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002014/0.02636, allocations: 7.984 kB / 338.5 MB, free: 7.312 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.55e-05/0.02642, allocations: 0 / 338.5 MB, free: 7.312 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.699e-05/0.02643, allocations: 11.98 kB / 338.5 MB, free: 7.301 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0014/0.02783, allocations: 1.009 MB / 339.5 MB, free: 6.281 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.02783, allocations: 0 / 339.5 MB, free: 6.281 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004371/0.02827, allocations: 71.89 kB / 339.6 MB, free: 6.211 MB / 302.1 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.0002401/0.02851, allocations: 107.2 kB / 339.7 MB, free: 6.098 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004437/0.02895, allocations: 127.8 kB / 339.8 MB, free: 5.969 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.02896, allocations: 0 / 339.8 MB, free: 5.969 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000177/0.02913, allocations: 51.98 kB / 339.8 MB, free: 5.918 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006717/0.02981, allocations: 109.4 kB / 340 MB, free: 5.816 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002401/0.03221, allocations: 1.374 MB / 341.3 MB, free: 4.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004767/0.03268, allocations: 404.1 kB / 341.7 MB, free: 3.992 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0007273/0.03341, allocations: 474 kB / 342.2 MB, free: 3.527 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001341/0.03354, allocations: 40.5 kB / 342.2 MB, free: 3.488 MB / 302.1 MB Notification: Performance of SimCode: time 3.5e-07/0.03354, allocations: 0 / 342.2 MB, free: 3.488 MB / 302.1 MB Notification: Performance of Templates: time 0.01692/0.05047, allocations: 7.935 MB / 350.2 MB, free: 11.62 MB / 318.1 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.505238946527243]