Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001519/0.001519, allocations: 83.58 kB / 21.19 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001833/0.001833, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.068/1.068, allocations: 177.1 MB / 205 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.003e-06/2.003e-06, allocations: 0 / 272.9 MB, free: 1.586 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.148e-05/3.348e-05, allocations: 2.312 kB / 272.9 MB, free: 1.582 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002913/0.002947, allocations: 1.958 MB / 274.9 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001496/0.004443, allocations: 1.211 MB / 276.1 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001153/0.004558, allocations: 7.938 kB / 276.1 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00097/0.005528, allocations: 494.3 kB / 276.6 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001772/0.005705, allocations: 199.3 kB / 276.8 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003988/0.006104, allocations: 167.3 kB / 277 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003166/0.006421, allocations: 230.9 kB / 277.2 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.255e-05/0.006513, allocations: 9.812 kB / 277.2 MB, free: 13.31 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002346/0.006748, allocations: 147.6 kB / 277.3 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002133/0.006961, allocations: 219.6 kB / 277.6 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.261e-05/0.006984, allocations: 4 kB / 277.6 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001361/0.00712, allocations: 59.89 kB / 277.6 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003255/0.007446, allocations: 267.3 kB / 277.9 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001121/0.007558, allocations: 143.4 kB / 278 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004997/0.008057, allocations: 0.5097 MB / 278.5 MB, free: 11.97 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.008063, allocations: 4 kB / 278.5 MB, free: 11.97 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.008064, allocations: 0 / 278.5 MB, free: 11.97 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.123e-05/0.008076, allocations: 0 / 278.5 MB, free: 11.97 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.001777/0.009852, allocations: 1.273 MB / 279.8 MB, free: 10.66 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.972e-05/0.009912, allocations: 8.031 kB / 279.8 MB, free: 10.65 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002257/0.01014, allocations: 100.3 kB / 279.9 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006433/0.01078, allocations: 0.5217 MB / 280.4 MB, free: 9.988 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.064e-05/0.01081, allocations: 4.359 kB / 280.4 MB, free: 9.984 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.234e-05/0.01083, allocations: 4.312 kB / 280.4 MB, free: 9.98 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002156/0.01105, allocations: 78.91 kB / 280.5 MB, free: 9.895 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/0.01106, allocations: 192 / 280.5 MB, free: 9.895 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.433e-05/0.01107, allocations: 384 / 280.5 MB, free: 9.895 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.01108, allocations: 3.938 kB / 280.5 MB, free: 9.891 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.207e-05/0.01117, allocations: 19.98 kB / 280.5 MB, free: 9.871 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008669/0.01203, allocations: 0.7666 MB / 281.3 MB, free: 9.07 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001876/0.01222, allocations: 59.05 kB / 281.4 MB, free: 9 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.371e-05/0.01226, allocations: 15.69 kB / 281.4 MB, free: 8.98 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.771e-05/0.01228, allocations: 4 kB / 281.4 MB, free: 8.977 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.264e-05/0.0123, allocations: 41.33 kB / 281.4 MB, free: 8.926 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 1.282e-06/0.01231, allocations: 0 / 281.4 MB, free: 8.926 MB / 266.7 MB Notification: Performance of matching and sorting (n=3): time 0.000352/0.01266, allocations: 161 kB / 281.6 MB, free: 8.762 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.274e-05/0.01269, allocations: 55.34 kB / 281.6 MB, free: 8.695 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009193/0.01361, allocations: 1.13 MB / 282.8 MB, free: 7.543 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.622e-05/0.01363, allocations: 25.7 kB / 282.8 MB, free: 7.512 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000306/0.01393, allocations: 0.4994 MB / 283.3 MB, free: 7.008 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.726e-05/0.01396, allocations: 11.89 kB / 283.3 MB, free: 6.996 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.262e-05/0.01401, allocations: 27.36 kB / 283.3 MB, free: 6.961 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.01414, allocations: 488.4 kB / 283.8 MB, free: 6.477 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.339e-05/0.01418, allocations: 4 kB / 283.8 MB, free: 6.473 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.471e-05/0.01422, allocations: 19.98 kB / 283.8 MB, free: 6.453 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.895e-05/0.0143, allocations: 23.69 kB / 283.9 MB, free: 6.426 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.0143, allocations: 0 / 283.9 MB, free: 6.426 MB / 266.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002466/0.01454, allocations: 157.4 kB / 284 MB, free: 6.266 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.01457, allocations: 11.88 kB / 284 MB, free: 6.254 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-06/0.01457, allocations: 4 kB / 284 MB, free: 6.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.352e-05/0.0146, allocations: 3.984 kB / 284 MB, free: 6.246 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001193/0.01472, allocations: 8 kB / 284 MB, free: 6.238 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.859e-06/0.01473, allocations: 4 kB / 284 MB, free: 6.234 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.062e-05/0.01481, allocations: 7.984 kB / 284 MB, free: 6.227 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.699e-06/0.01482, allocations: 4 kB / 284.1 MB, free: 6.223 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.0001098/0.01493, allocations: 156.6 kB / 284.2 MB, free: 6.059 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001363/0.01506, allocations: 99.36 kB / 284.3 MB, free: 5.961 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002606/0.01532, allocations: 149.5 kB / 284.4 MB, free: 5.805 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.01533, allocations: 4 kB / 284.5 MB, free: 5.801 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.01533, allocations: 0 / 284.5 MB, free: 5.801 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.01534, allocations: 4 kB / 284.5 MB, free: 5.797 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000591/0.01593, allocations: 0.5409 MB / 285 MB, free: 5.223 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.01593, allocations: 0 / 285 MB, free: 5.223 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.532e-05/0.01598, allocations: 15.92 kB / 285 MB, free: 5.207 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.01598, allocations: 3.938 kB / 285 MB, free: 5.203 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.107e-05/0.01599, allocations: 7.938 kB / 285 MB, free: 5.195 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.01599, allocations: 0 / 285 MB, free: 5.195 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.01599, allocations: 0 / 285 MB, free: 5.195 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000243/0.01624, allocations: 300.2 kB / 285.3 MB, free: 4.883 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001685/0.01641, allocations: 143.3 kB / 285.5 MB, free: 4.742 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.683e-05/0.01644, allocations: 7.938 kB / 285.5 MB, free: 4.734 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.458e-05/0.01653, allocations: 7.984 kB / 285.5 MB, free: 4.727 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.971e-05/0.01658, allocations: 0 / 285.5 MB, free: 4.727 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.033e-06/0.01658, allocations: 0 / 285.5 MB, free: 4.727 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0005636/0.01715, allocations: 0.6539 MB / 286.1 MB, free: 4.062 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01715, allocations: 0 / 286.1 MB, free: 4.062 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002314/0.01738, allocations: 71.92 kB / 286.2 MB, free: 3.992 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.0002008/0.01758, allocations: 111.2 kB / 286.3 MB, free: 3.875 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001484/0.01773, allocations: 31.67 kB / 286.3 MB, free: 3.84 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.01773, allocations: 0 / 286.3 MB, free: 3.84 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.435e-05/0.01779, allocations: 27.67 kB / 286.4 MB, free: 3.809 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004297/0.01822, allocations: 108.1 kB / 286.5 MB, free: 3.699 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001375/0.01959, allocations: 1.101 MB / 287.6 MB, free: 2.562 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001283/0.01972, allocations: 193.2 kB / 287.8 MB, free: 2.352 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003805/0.0201, allocations: 434.2 kB / 288.2 MB, free: 1.922 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.614e-05/0.02018, allocations: 44.5 kB / 288.2 MB, free: 1.879 MB / 266.7 MB Notification: Performance of SimCode: time 1.062e-06/0.02019, allocations: 0 / 288.2 MB, free: 1.879 MB / 266.7 MB Notification: Performance of Templates: time 0.1395/0.1597, allocations: 7.929 MB / 296.2 MB, free: 24.59 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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: 3.3030043528415263]