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.0009832/0.0009832, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.0008701/0.0008701, allocations: 148.2 kB / 24.81 MB, free: 9.27 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.9379/0.9379, allocations: 173.3 MB / 201.4 MB, free: 9.23 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 1.432e-06/1.432e-06, allocations: 0 / 268.4 MB, free: 6.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.02e-05/1.163e-05, allocations: 6.25 kB / 268.4 MB, free: 6.227 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.005078/0.005089, allocations: 1.924 MB / 270.3 MB, free: 4.293 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001376/0.006466, allocations: 1.172 MB / 271.5 MB, free: 3.113 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.54e-05/0.006551, allocations: 3.938 kB / 271.5 MB, free: 3.109 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009097/0.007461, allocations: 498.2 kB / 272 MB, free: 2.621 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002073/0.007668, allocations: 199.3 kB / 272.2 MB, free: 2.426 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003509/0.008019, allocations: 163.3 kB / 272.3 MB, free: 2.266 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000293/0.008312, allocations: 238.9 kB / 272.6 MB, free: 2.031 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.53e-05/0.008387, allocations: 13.78 kB / 272.6 MB, free: 2.016 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000197/0.008584, allocations: 147.6 kB / 272.7 MB, free: 1.871 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005082/0.009093, allocations: 215.6 kB / 272.9 MB, free: 1.66 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.362e-05/0.009116, allocations: 8 kB / 272.9 MB, free: 1.652 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001384/0.009255, allocations: 63.89 kB / 273 MB, free: 1.59 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001793/0.009434, allocations: 263.3 kB / 273.3 MB, free: 1.332 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001216/0.009555, allocations: 139.5 kB / 273.4 MB, free: 1.195 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005173/0.01007, allocations: 0.5136 MB / 273.9 MB, free: 0.6797 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.305e-06/0.01008, allocations: 0 / 273.9 MB, free: 0.6797 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.01008, allocations: 0 / 273.9 MB, free: 0.6797 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.01008, allocations: 0 / 273.9 MB, free: 0.6797 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.001787/0.01187, allocations: 1.261 MB / 275.2 MB, free: 15.38 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.01191, allocations: 12.92 kB / 275.2 MB, free: 15.36 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001768/0.01209, allocations: 96.31 kB / 275.3 MB, free: 15.27 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000552/0.01264, allocations: 490.2 kB / 275.8 MB, free: 14.75 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.89e-05/0.01266, allocations: 4.375 kB / 275.8 MB, free: 14.75 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.292e-05/0.01267, allocations: 384 / 275.8 MB, free: 14.75 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001644/0.01283, allocations: 74.75 kB / 275.8 MB, free: 14.67 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-06/0.01284, allocations: 192 / 275.8 MB, free: 14.67 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.053e-05/0.01285, allocations: 384 / 275.8 MB, free: 14.67 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.01286, allocations: 7.922 kB / 275.8 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.93e-05/0.01293, allocations: 19.98 kB / 275.9 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007536/0.01368, allocations: 0.5398 MB / 276.4 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001642/0.01385, allocations: 54.98 kB / 276.5 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.79e-05/0.01389, allocations: 19.75 kB / 276.5 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.664e-05/0.0139, allocations: 0 / 276.5 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.329e-05/0.01393, allocations: 33.39 kB / 276.5 MB, free: 13.94 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 1.272e-06/0.01393, allocations: 0 / 276.5 MB, free: 13.94 MB / 266.7 MB Notification: Performance of matching and sorting (n=3): time 0.0003478/0.01427, allocations: 161 kB / 276.7 MB, free: 13.78 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.796e-05/0.0143, allocations: 55.34 kB / 276.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001128/0.01543, allocations: 1.106 MB / 277.8 MB, free: 12.58 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.01545, allocations: 25.7 kB / 277.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004025/0.01585, allocations: 0.5071 MB / 278.4 MB, free: 12.04 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.628e-05/0.01588, allocations: 15.84 kB / 278.4 MB, free: 12.02 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.306e-05/0.01593, allocations: 31.36 kB / 278.4 MB, free: 11.98 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.01606, allocations: 484.4 kB / 278.9 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.416e-05/0.01609, allocations: 7.984 kB / 278.9 MB, free: 11.5 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.261e-05/0.01612, allocations: 12 kB / 278.9 MB, free: 11.48 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.186e-05/0.0162, allocations: 23.67 kB / 278.9 MB, free: 11.46 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.0162, allocations: 0 / 278.9 MB, free: 11.46 MB / 266.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002542/0.01645, allocations: 145.1 kB / 279.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.165e-05/0.01646, allocations: 7.938 kB / 279.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.01647, allocations: 3.938 kB / 279.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.01648, allocations: 0 / 279.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.665e-05/0.01658, allocations: 15.98 kB / 279.1 MB, free: 11.28 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.935e-06/0.01658, allocations: 4 kB / 279.1 MB, free: 11.28 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001054/0.01668, allocations: 8.312 kB / 279.1 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.006e-05/0.01669, allocations: 0 / 279.1 MB, free: 11.27 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.0001161/0.01681, allocations: 152.6 kB / 279.2 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001521/0.01696, allocations: 107.4 kB / 279.4 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002734/0.01724, allocations: 161.4 kB / 279.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.01724, allocations: 0 / 279.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.542e-06/0.01724, allocations: 0 / 279.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.01724, allocations: 0 / 279.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006678/0.01791, allocations: 369.7 kB / 279.9 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.01791, allocations: 0 / 279.9 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.64e-05/0.01796, allocations: 15.92 kB / 279.9 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.01796, allocations: 4 kB / 279.9 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.065e-06/0.01797, allocations: 4 kB / 279.9 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.01797, allocations: 3.984 kB / 279.9 MB, free: 10.42 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.01798, allocations: 3.938 kB / 279.9 MB, free: 10.42 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002524/0.01823, allocations: 292.1 kB / 280.2 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000166/0.01839, allocations: 115.4 kB / 280.3 MB, free: 10 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.956e-05/0.01844, allocations: 4 kB / 280.3 MB, free: 9.996 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001166/0.01856, allocations: 0 / 280.3 MB, free: 9.996 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.251e-05/0.01859, allocations: 15.92 kB / 280.3 MB, free: 9.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.424e-06/0.0186, allocations: 0 / 280.3 MB, free: 9.98 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0005745/0.01917, allocations: 0.603 MB / 280.9 MB, free: 9.367 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01917, allocations: 0 / 280.9 MB, free: 9.367 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003024/0.01948, allocations: 75.92 kB / 281 MB, free: 9.293 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.0001488/0.01963, allocations: 103.2 kB / 281.1 MB, free: 9.18 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001064/0.01973, allocations: 35.75 kB / 281.1 MB, free: 9.141 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.252e-06/0.01973, allocations: 0 / 281.1 MB, free: 9.141 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.573e-05/0.01978, allocations: 23.67 kB / 281.2 MB, free: 9.113 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004644/0.02024, allocations: 104.2 kB / 281.3 MB, free: 9.008 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001401/0.02164, allocations: 1.101 MB / 282.4 MB, free: 7.871 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001639/0.02181, allocations: 197.1 kB / 282.6 MB, free: 7.66 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003922/0.0222, allocations: 378.1 kB / 282.9 MB, free: 7.285 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002433/0.02244, allocations: 170.1 kB / 283.1 MB, free: 7.117 MB / 266.7 MB Notification: Performance of SimCode: time 7.42e-07/0.02245, allocations: 0 / 283.1 MB, free: 7.117 MB / 266.7 MB Notification: Performance of Templates: time 0.1122/0.1347, allocations: 8.432 MB / 291.5 MB, free: 26.12 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.8408663403242826]