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.0009898/0.0009898, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.001184/0.001184, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 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 1.026/1.026, allocations: 173.4 MB / 201.1 MB, free: 9.344 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.463e-06/1.463e-06, allocations: 3.938 kB / 268 MB, free: 6.473 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.462e-05/2.608e-05, allocations: 2.312 kB / 268 MB, free: 6.469 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002306/0.002332, allocations: 1.94 MB / 269.9 MB, free: 4.52 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001391/0.003723, allocations: 1.187 MB / 271.1 MB, free: 3.324 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001089/0.003832, allocations: 7.938 kB / 271.1 MB, free: 3.316 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001514/0.005345, allocations: 494.2 kB / 271.6 MB, free: 2.832 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003362/0.005682, allocations: 203.3 kB / 271.8 MB, free: 2.633 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005536/0.006235, allocations: 167.3 kB / 272 MB, free: 2.469 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004048/0.00664, allocations: 238.9 kB / 272.2 MB, free: 2.234 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.856e-05/0.006739, allocations: 9.797 kB / 272.2 MB, free: 2.223 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002707/0.007009, allocations: 147.6 kB / 272.3 MB, free: 2.078 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003545/0.007364, allocations: 215.7 kB / 272.5 MB, free: 1.867 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.385e-05/0.007398, allocations: 15.92 kB / 272.6 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001959/0.007594, allocations: 59.91 kB / 272.6 MB, free: 1.793 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002347/0.007828, allocations: 259.3 kB / 272.9 MB, free: 1.539 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00018/0.008008, allocations: 139.4 kB / 273 MB, free: 1.402 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006234/0.008632, allocations: 0.5175 MB / 273.5 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.008635, allocations: 0 / 273.5 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.008636, allocations: 0 / 273.5 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.195e-06/0.008644, allocations: 0 / 273.5 MB, free: 0.8828 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.002202/0.01085, allocations: 1.277 MB / 274.8 MB, free: 15.57 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.01089, allocations: 12.92 kB / 274.8 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002126/0.0111, allocations: 92.33 kB / 274.9 MB, free: 15.46 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007317/0.01184, allocations: 0.5217 MB / 275.4 MB, free: 14.9 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.018e-05/0.01186, allocations: 384 / 275.4 MB, free: 14.9 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.157e-05/0.01188, allocations: 8.312 kB / 275.4 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002002/0.01208, allocations: 74.89 kB / 275.5 MB, free: 14.81 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.01209, allocations: 192 / 275.5 MB, free: 14.81 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.61e-05/0.0121, allocations: 384 / 275.5 MB, free: 14.81 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.01211, allocations: 7.938 kB / 275.5 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.552e-05/0.01221, allocations: 23.98 kB / 275.5 MB, free: 14.78 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001239/0.01345, allocations: 0.755 MB / 276.3 MB, free: 13.99 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002345/0.01368, allocations: 70.91 kB / 276.4 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.453e-05/0.01375, allocations: 15.75 kB / 276.4 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.966e-05/0.01377, allocations: 0 / 276.4 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.806e-05/0.01379, allocations: 45.33 kB / 276.4 MB, free: 13.84 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 1.443e-06/0.0138, allocations: 0 / 276.4 MB, free: 13.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=3): time 0.0003646/0.01416, allocations: 157.1 kB / 276.6 MB, free: 13.68 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.343e-05/0.01419, allocations: 55.34 kB / 276.6 MB, free: 13.61 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009455/0.01514, allocations: 1.134 MB / 277.8 MB, free: 12.45 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.596e-05/0.01516, allocations: 25.7 kB / 277.8 MB, free: 12.42 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002907/0.01545, allocations: 0.4994 MB / 278.3 MB, free: 11.92 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.42e-05/0.01547, allocations: 11.84 kB / 278.3 MB, free: 11.91 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.629e-05/0.01552, allocations: 27.36 kB / 278.3 MB, free: 11.87 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.01563, allocations: 488.4 kB / 278.8 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.953e-05/0.01567, allocations: 11.98 kB / 278.8 MB, free: 11.38 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.622e-05/0.01571, allocations: 8 kB / 278.8 MB, free: 11.37 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.554e-05/0.01579, allocations: 31.67 kB / 278.9 MB, free: 11.33 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.01579, allocations: 4 kB / 278.9 MB, free: 11.33 MB / 266.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002292/0.01602, allocations: 145.1 kB / 279 MB, free: 11.18 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.01604, allocations: 11.88 kB / 279 MB, free: 11.17 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.01604, allocations: 0 / 279 MB, free: 11.17 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.01606, allocations: 4 kB / 279 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.01617, allocations: 11.98 kB / 279 MB, free: 11.15 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.01618, allocations: 0 / 279 MB, free: 11.15 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.357e-05/0.01626, allocations: 11.98 kB / 279 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.18e-05/0.01627, allocations: 0 / 279 MB, free: 11.14 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.0001087/0.01638, allocations: 156.6 kB / 279.2 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/0.01649, allocations: 103.3 kB / 279.3 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002599/0.01675, allocations: 169.8 kB / 279.5 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.01675, allocations: 0 / 279.5 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.01676, allocations: 0 / 279.5 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.01676, allocations: 0 / 279.5 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004803/0.01724, allocations: 0.541 MB / 280 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.111e-06/0.01725, allocations: 4 kB / 280 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.879e-05/0.0173, allocations: 11.92 kB / 280 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.169e-06/0.0173, allocations: 0 / 280 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.342e-05/0.01731, allocations: 11.88 kB / 280 MB, free: 10.1 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.055e-06/0.01732, allocations: 0 / 280 MB, free: 10.1 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.01732, allocations: 0 / 280 MB, free: 10.1 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002778/0.0176, allocations: 296.1 kB / 280.3 MB, free: 9.789 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000156/0.01775, allocations: 139.4 kB / 280.5 MB, free: 9.652 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.039e-05/0.01779, allocations: 7.938 kB / 280.5 MB, free: 9.645 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.198e-05/0.01787, allocations: 0 / 280.5 MB, free: 9.645 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.316e-05/0.01792, allocations: 11.98 kB / 280.5 MB, free: 9.633 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.444e-06/0.01792, allocations: 4 kB / 280.5 MB, free: 9.629 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0005632/0.01849, allocations: 0.6539 MB / 281.1 MB, free: 8.965 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01849, allocations: 0 / 281.1 MB, free: 8.965 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002265/0.01871, allocations: 63.94 kB / 281.2 MB, free: 8.902 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.0001646/0.01888, allocations: 119.2 kB / 281.3 MB, free: 8.773 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001255/0.019, allocations: 35.67 kB / 281.3 MB, free: 8.734 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.01901, allocations: 0 / 281.3 MB, free: 8.734 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.938e-05/0.01906, allocations: 23.67 kB / 281.4 MB, free: 8.707 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003772/0.01943, allocations: 104.1 kB / 281.5 MB, free: 8.602 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001278/0.02071, allocations: 1.105 MB / 282.6 MB, free: 7.461 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001219/0.02083, allocations: 197.1 kB / 282.8 MB, free: 7.25 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000373/0.02121, allocations: 430.3 kB / 283.2 MB, free: 6.824 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.609e-05/0.02129, allocations: 36.5 kB / 283.2 MB, free: 6.785 MB / 266.7 MB Notification: Performance of SimCode: time 1.222e-06/0.02129, allocations: 4 kB / 283.2 MB, free: 6.781 MB / 266.7 MB Notification: Performance of Templates: time 0.1189/0.1402, allocations: 8.464 MB / 291.7 MB, free: 26.42 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: 3.061665383167565]