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.0009471/0.0009471, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.0009732/0.0009732, allocations: 169 kB / 24.91 MB, free: 8.766 MB / 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 0.9313/0.9313, allocations: 177.1 MB / 205.3 MB, free: 5.449 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 1.122e-06/1.122e-06, allocations: 0 / 273.5 MB, free: 1.254 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.172e-05/1.284e-05, allocations: 2.312 kB / 273.5 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002102/0.002115, allocations: 1.989 MB / 275.5 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001165/0.003281, allocations: 1.226 MB / 276.7 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.056e-05/0.003351, allocations: 0 / 276.7 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007526/0.004104, allocations: 0.549 MB / 277.2 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001413/0.004245, allocations: 195.3 kB / 277.4 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002672/0.004512, allocations: 171.2 kB / 277.6 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002194/0.004732, allocations: 227 kB / 277.8 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.04e-05/0.004792, allocations: 14.45 kB / 277.8 MB, free: 12.87 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001617/0.004954, allocations: 147.6 kB / 278 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001559/0.00511, allocations: 183.7 kB / 278.1 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.721e-05/0.005127, allocations: 8 kB / 278.2 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001087/0.005235, allocations: 71.83 kB / 278.2 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001277/0.005363, allocations: 267.3 kB / 278.5 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.188e-05/0.005455, allocations: 143.4 kB / 278.6 MB, free: 12.06 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003837/0.005839, allocations: 0.5059 MB / 279.1 MB, free: 11.55 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.362e-06/0.00584, allocations: 0 / 279.1 MB, free: 11.55 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.5e-07/0.00584, allocations: 0 / 279.1 MB, free: 11.55 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.005846, allocations: 0 / 279.1 MB, free: 11.55 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.001123/0.006969, allocations: 1.034 MB / 280.2 MB, free: 10.49 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.554e-05/0.006994, allocations: 15.97 kB / 280.2 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000117/0.007111, allocations: 48.88 kB / 280.2 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003752/0.007486, allocations: 451.4 kB / 280.7 MB, free: 9.949 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.22e-05/0.007499, allocations: 4.375 kB / 280.7 MB, free: 9.945 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.748e-06/0.007508, allocations: 4.375 kB / 280.7 MB, free: 9.941 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001079/0.007616, allocations: 70.91 kB / 280.7 MB, free: 9.863 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.14e-06/0.007621, allocations: 192 / 280.7 MB, free: 9.863 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.698e-06/0.007631, allocations: 4.375 kB / 280.7 MB, free: 9.859 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.678e-06/0.007636, allocations: 3.938 kB / 280.8 MB, free: 9.855 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.458e-05/0.00768, allocations: 11.98 kB / 280.8 MB, free: 9.844 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003132/0.007994, allocations: 236.1 kB / 281 MB, free: 9.598 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001023/0.008096, allocations: 46.48 kB / 281 MB, free: 9.543 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.253e-05/0.008118, allocations: 8.859 kB / 281 MB, free: 9.531 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.067e-05/0.008129, allocations: 7.984 kB / 281.1 MB, free: 9.523 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.539e-05/0.008144, allocations: 30.56 kB / 281.1 MB, free: 9.484 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 8.72e-07/0.008145, allocations: 4 kB / 281.1 MB, free: 9.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=3): time 0.000197/0.008342, allocations: 105.5 kB / 281.2 MB, free: 9.371 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.134e-05/0.008364, allocations: 51.41 kB / 281.2 MB, free: 9.309 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005422/0.008906, allocations: 0.739 MB / 282 MB, free: 8.551 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.41e-05/0.00892, allocations: 29.7 kB / 282 MB, free: 8.516 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.178e-05/0.009012, allocations: 198.5 kB / 282.2 MB, free: 8.316 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.788e-05/0.00903, allocations: 7.953 kB / 282.2 MB, free: 8.309 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.616e-05/0.009066, allocations: 21.69 kB / 282.2 MB, free: 8.281 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.395e-05/0.00913, allocations: 306 kB / 282.5 MB, free: 7.977 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.985e-05/0.00915, allocations: 4 kB / 282.5 MB, free: 7.973 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.822e-05/0.009168, allocations: 8 kB / 282.5 MB, free: 7.965 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.493e-05/0.009213, allocations: 24.84 kB / 282.6 MB, free: 7.938 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.009215, allocations: 0 / 282.6 MB, free: 7.938 MB / 266.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001373/0.009352, allocations: 93.56 kB / 282.7 MB, free: 7.84 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.009366, allocations: 8 kB / 282.7 MB, free: 7.832 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.116e-06/0.009369, allocations: 0 / 282.7 MB, free: 7.832 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.057e-06/0.009378, allocations: 3.938 kB / 282.7 MB, free: 7.828 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.683e-05/0.009455, allocations: 15.92 kB / 282.7 MB, free: 7.812 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.264e-06/0.009457, allocations: 0 / 282.7 MB, free: 7.812 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.812e-05/0.009525, allocations: 11.98 kB / 282.7 MB, free: 7.801 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.554e-06/0.009533, allocations: 0 / 282.7 MB, free: 7.801 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.094e-05/0.009614, allocations: 116.7 kB / 282.8 MB, free: 7.676 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.273e-05/0.009696, allocations: 47.94 kB / 282.9 MB, free: 7.629 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001914/0.009888, allocations: 197.7 kB / 283.1 MB, free: 7.43 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.009891, allocations: 3.938 kB / 283.1 MB, free: 7.426 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.052e-06/0.009892, allocations: 7.938 kB / 283.1 MB, free: 7.418 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.009896, allocations: 3.984 kB / 283.1 MB, free: 7.414 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002869/0.01018, allocations: 345.2 kB / 283.4 MB, free: 7.059 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.01018, allocations: 0 / 283.4 MB, free: 7.059 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.824e-05/0.01021, allocations: 7.984 kB / 283.4 MB, free: 7.051 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.01021, allocations: 0 / 283.4 MB, free: 7.051 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.863e-06/0.01022, allocations: 4 kB / 283.4 MB, free: 7.047 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.01022, allocations: 0 / 283.4 MB, free: 7.047 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.01022, allocations: 0 / 283.4 MB, free: 7.047 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001459/0.01037, allocations: 234.7 kB / 283.6 MB, free: 6.801 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001071/0.01048, allocations: 115.3 kB / 283.8 MB, free: 6.688 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.084e-05/0.01051, allocations: 0 / 283.8 MB, free: 6.688 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.113e-05/0.01058, allocations: 4 kB / 283.8 MB, free: 6.684 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.898e-05/0.01061, allocations: 11.92 kB / 283.8 MB, free: 6.672 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.07e-06/0.01061, allocations: 4 kB / 283.8 MB, free: 6.668 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002751/0.01089, allocations: 391.7 kB / 284.2 MB, free: 6.273 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01089, allocations: 0 / 284.2 MB, free: 6.273 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001696/0.01106, allocations: 64 kB / 284.2 MB, free: 6.211 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 9.575e-05/0.01115, allocations: 92.41 kB / 284.3 MB, free: 6.113 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.186e-05/0.01122, allocations: 24.84 kB / 284.3 MB, free: 6.086 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.106e-06/0.01123, allocations: 12 kB / 284.4 MB, free: 6.074 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.219e-05/0.01127, allocations: 12.86 kB / 284.4 MB, free: 6.059 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002836/0.01155, allocations: 104.5 kB / 284.5 MB, free: 5.953 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001026/0.01257, allocations: 1.109 MB / 285.6 MB, free: 4.809 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001146/0.01269, allocations: 201.1 kB / 285.8 MB, free: 4.59 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002732/0.01296, allocations: 374.1 kB / 286.1 MB, free: 4.219 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001852/0.01315, allocations: 143.2 kB / 286.3 MB, free: 4.078 MB / 266.7 MB Notification: Performance of SimCode: time 5.91e-07/0.01315, allocations: 0 / 286.3 MB, free: 4.078 MB / 266.7 MB Notification: Performance of Templates: time 0.1022/0.1153, allocations: 8.371 MB / 294.6 MB, free: 23.67 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 -s gbode -gbm=radauIIA3 -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: 2.5608868659473956]