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.001031/0.001031, allocations: 84.73 kB / 21.5 MB, free: 2.988 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.001033/0.001033, allocations: 167.5 kB / 24.91 MB, free: 8.766 MB / 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 0.9793/0.9793, allocations: 177 MB / 205.2 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] 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.443e-06/1.443e-06, allocations: 0 / 273.4 MB, free: 1.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.565e-05/1.709e-05, allocations: 6.25 kB / 273.4 MB, free: 1.223 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002221/0.002238, allocations: 1.984 MB / 275.4 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001333/0.003571, allocations: 1.23 MB / 276.6 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.778e-05/0.003649, allocations: 0 / 276.6 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008168/0.004465, allocations: 0.545 MB / 277.2 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001679/0.004633, allocations: 199.3 kB / 277.4 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003085/0.004942, allocations: 163.2 kB / 277.5 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002701/0.005212, allocations: 235 kB / 277.7 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.714e-05/0.005279, allocations: 10.47 kB / 277.8 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001974/0.005477, allocations: 159.6 kB / 277.9 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000174/0.005651, allocations: 175.7 kB / 278.1 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.009e-05/0.005671, allocations: 8 kB / 278.1 MB, free: 12.51 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001261/0.005797, allocations: 71.88 kB / 278.2 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001373/0.005934, allocations: 263.3 kB / 278.4 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.655e-05/0.006031, allocations: 139.5 kB / 278.6 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004/0.006431, allocations: 0.5097 MB / 279.1 MB, free: 11.53 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.493e-06/0.006432, allocations: 0 / 279.1 MB, free: 11.53 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.006433, allocations: 3.938 kB / 279.1 MB, free: 11.53 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.006438, allocations: 0 / 279.1 MB, free: 11.53 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.001241/0.00768, allocations: 1.038 MB / 280.1 MB, free: 10.46 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.007715, allocations: 11.98 kB / 280.1 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001206/0.007836, allocations: 56.86 kB / 280.2 MB, free: 10.39 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003765/0.008212, allocations: 447.5 kB / 280.6 MB, free: 9.918 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.328e-05/0.008225, allocations: 384 / 280.6 MB, free: 9.918 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.135e-05/0.008237, allocations: 4.375 kB / 280.6 MB, free: 9.914 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001232/0.00836, allocations: 70.91 kB / 280.7 MB, free: 9.836 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.092e-06/0.008366, allocations: 4.188 kB / 280.7 MB, free: 9.832 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.458e-06/0.008376, allocations: 384 / 280.7 MB, free: 9.832 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.008381, allocations: 3.938 kB / 280.7 MB, free: 9.828 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.966e-05/0.008431, allocations: 15.92 kB / 280.7 MB, free: 9.812 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003788/0.00881, allocations: 232.2 kB / 280.9 MB, free: 9.57 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001123/0.008922, allocations: 46.48 kB / 281 MB, free: 9.516 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.596e-05/0.008948, allocations: 12.84 kB / 281 MB, free: 9.5 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.568e-06/0.008958, allocations: 4 kB / 281 MB, free: 9.496 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.754e-05/0.008975, allocations: 30.56 kB / 281 MB, free: 9.457 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 1.292e-06/0.008976, allocations: 0 / 281 MB, free: 9.457 MB / 266.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002253/0.009202, allocations: 113.5 kB / 281.1 MB, free: 9.34 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.461e-05/0.009226, allocations: 51.41 kB / 281.2 MB, free: 9.277 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005153/0.009742, allocations: 0.7429 MB / 281.9 MB, free: 8.516 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.643e-05/0.009758, allocations: 29.7 kB / 282 MB, free: 8.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.009859, allocations: 198.5 kB / 282.1 MB, free: 8.281 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.952e-05/0.009878, allocations: 3.953 kB / 282.2 MB, free: 8.277 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.786e-05/0.009916, allocations: 21.7 kB / 282.2 MB, free: 8.25 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.499e-05/0.009991, allocations: 310 kB / 282.5 MB, free: 7.941 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.042e-05/0.01001, allocations: 4 kB / 282.5 MB, free: 7.938 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.01e-05/0.01003, allocations: 8 kB / 282.5 MB, free: 7.93 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.968e-05/0.01008, allocations: 20.84 kB / 282.5 MB, free: 7.906 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.01008, allocations: 4 kB / 282.5 MB, free: 7.902 MB / 266.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001503/0.01023, allocations: 97.56 kB / 282.6 MB, free: 7.801 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/0.01025, allocations: 8 kB / 282.6 MB, free: 7.793 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.466e-06/0.01025, allocations: 0 / 282.6 MB, free: 7.793 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.042e-05/0.01026, allocations: 3.938 kB / 282.6 MB, free: 7.789 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.313e-05/0.01034, allocations: 11.98 kB / 282.6 MB, free: 7.777 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.835e-06/0.01035, allocations: 0 / 282.6 MB, free: 7.777 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.72e-05/0.01041, allocations: 4 kB / 282.6 MB, free: 7.773 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.927e-06/0.01042, allocations: 3.984 kB / 282.6 MB, free: 7.77 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 8.789e-05/0.01051, allocations: 112.7 kB / 282.7 MB, free: 7.648 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.578e-05/0.0106, allocations: 55.94 kB / 282.8 MB, free: 7.594 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002055/0.0108, allocations: 197.6 kB / 283 MB, free: 7.395 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.01081, allocations: 3.938 kB / 283 MB, free: 7.391 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-06/0.01081, allocations: 0 / 283 MB, free: 7.391 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.01081, allocations: 4 kB / 283 MB, free: 7.387 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002833/0.01109, allocations: 341.2 kB / 283.3 MB, free: 7.035 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.0111, allocations: 0 / 283.3 MB, free: 7.035 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.207e-05/0.01113, allocations: 7.984 kB / 283.3 MB, free: 7.027 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.01113, allocations: 0 / 283.3 MB, free: 7.027 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.056e-06/0.01114, allocations: 8 kB / 283.4 MB, free: 7.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.01114, allocations: 7.922 kB / 283.4 MB, free: 7.012 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.01114, allocations: 0 / 283.4 MB, free: 7.012 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001593/0.0113, allocations: 234.6 kB / 283.6 MB, free: 6.766 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001146/0.01142, allocations: 111.3 kB / 283.7 MB, free: 6.656 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.316e-05/0.01145, allocations: 0 / 283.7 MB, free: 6.656 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.659e-05/0.01153, allocations: 11.98 kB / 283.7 MB, free: 6.645 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.221e-05/0.01156, allocations: 3.938 kB / 283.7 MB, free: 6.641 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.732e-06/0.01157, allocations: 8 kB / 283.7 MB, free: 6.633 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002994/0.01186, allocations: 395.7 kB / 284.1 MB, free: 6.234 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01186, allocations: 0 / 284.1 MB, free: 6.234 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001942/0.01206, allocations: 60 kB / 284.2 MB, free: 6.176 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.0001123/0.01217, allocations: 96.41 kB / 284.3 MB, free: 6.074 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.519e-05/0.01225, allocations: 20.84 kB / 284.3 MB, free: 6.051 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.273e-06/0.01225, allocations: 8 kB / 284.3 MB, free: 6.043 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.535e-05/0.01229, allocations: 16.8 kB / 284.3 MB, free: 6.023 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003205/0.01261, allocations: 112.1 kB / 284.4 MB, free: 5.91 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001171/0.01378, allocations: 1.105 MB / 285.5 MB, free: 4.77 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002108/0.01399, allocations: 189.2 kB / 285.7 MB, free: 4.566 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003359/0.01433, allocations: 386.4 kB / 286.1 MB, free: 4.184 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002284/0.01456, allocations: 143.3 kB / 286.2 MB, free: 4.043 MB / 266.7 MB Notification: Performance of SimCode: time 1.152e-06/0.01456, allocations: 0 / 286.2 MB, free: 4.043 MB / 266.7 MB Notification: Performance of Templates: time 0.1087/0.1233, allocations: 8.356 MB / 294.6 MB, free: 23.76 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 240] 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","",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.816130517050624]