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.0009096/0.0009096, allocations: 85.05 kB / 21.5 MB, free: 2.984 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.001038/0.001038, allocations: 143 kB / 24.89 MB, free: 8.781 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 1.067/1.067, allocations: 173.4 MB / 201.5 MB, free: 8.754 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.563e-06/1.563e-06, allocations: 0 / 268.5 MB, free: 5.996 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.833e-05/1.99e-05, allocations: 4.141 kB / 268.5 MB, free: 5.992 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003302/0.003322, allocations: 1.978 MB / 270.5 MB, free: 4.004 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001861/0.005183, allocations: 1.195 MB / 271.7 MB, free: 2.801 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.137e-05/0.005264, allocations: 0 / 271.7 MB, free: 2.801 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001146/0.00641, allocations: 0.5606 MB / 272.2 MB, free: 2.238 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002402/0.00665, allocations: 191.3 kB / 272.4 MB, free: 2.051 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004111/0.007061, allocations: 175.2 kB / 272.6 MB, free: 1.879 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002258/0.007287, allocations: 231 kB / 272.8 MB, free: 1.652 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.042e-05/0.007348, allocations: 6.469 kB / 272.8 MB, free: 1.645 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001564/0.007504, allocations: 151.6 kB / 273 MB, free: 1.496 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001795/0.007684, allocations: 187.7 kB / 273.2 MB, free: 1.312 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.232e-05/0.007706, allocations: 12 kB / 273.2 MB, free: 1.301 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001036/0.00781, allocations: 59.91 kB / 273.2 MB, free: 1.242 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001346/0.007944, allocations: 271.2 kB / 273.5 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.81e-05/0.008042, allocations: 139.5 kB / 273.6 MB, free: 0.8398 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003776/0.00842, allocations: 0.5058 MB / 274.1 MB, free: 340 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.713e-06/0.008422, allocations: 0 / 274.1 MB, free: 340 kB / 250.7 MB Notification: Performance of FrontEnd: time 6.11e-07/0.008422, allocations: 0 / 274.1 MB, free: 340 kB / 250.7 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.008427, allocations: 0 / 274.1 MB, free: 340 kB / 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.001224/0.009651, allocations: 1.046 MB / 275.2 MB, free: 15.25 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.19e-05/0.009683, allocations: 8.922 kB / 275.2 MB, free: 15.25 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001045/0.009787, allocations: 48.88 kB / 275.2 MB, free: 15.2 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003797/0.01017, allocations: 455.5 kB / 275.7 MB, free: 14.71 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.386e-05/0.01018, allocations: 4.375 kB / 275.7 MB, free: 14.71 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.123e-05/0.01019, allocations: 4.375 kB / 275.7 MB, free: 14.71 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001239/0.01032, allocations: 70.91 kB / 275.8 MB, free: 14.63 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.021e-06/0.01032, allocations: 192 / 275.8 MB, free: 14.63 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.067e-06/0.01033, allocations: 384 / 275.8 MB, free: 14.63 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.01034, allocations: 3.938 kB / 275.8 MB, free: 14.62 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.168e-05/0.01039, allocations: 19.91 kB / 275.8 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003559/0.01074, allocations: 228.2 kB / 276 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001084/0.01085, allocations: 38.56 kB / 276 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.581e-05/0.01088, allocations: 16.86 kB / 276.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.095e-05/0.01089, allocations: 0 / 276.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.634e-05/0.01091, allocations: 30.56 kB / 276.1 MB, free: 14.26 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.01091, allocations: 0 / 276.1 MB, free: 14.26 MB / 266.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002308/0.01114, allocations: 109.5 kB / 276.2 MB, free: 14.15 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.323e-05/0.01116, allocations: 55.41 kB / 276.2 MB, free: 14.08 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005447/0.01171, allocations: 0.7429 MB / 277 MB, free: 13.32 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.462e-05/0.01172, allocations: 25.7 kB / 277 MB, free: 13.29 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.01183, allocations: 202.4 kB / 277.2 MB, free: 13.09 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.153e-05/0.01185, allocations: 7.906 kB / 277.2 MB, free: 13.08 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.624e-05/0.01189, allocations: 17.7 kB / 277.2 MB, free: 13.05 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.01203, allocations: 318 kB / 277.5 MB, free: 12.74 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.396e-05/0.01206, allocations: 15.98 kB / 277.6 MB, free: 12.72 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.931e-05/0.01208, allocations: 4 kB / 277.6 MB, free: 12.72 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.129e-05/0.01213, allocations: 24.78 kB / 277.6 MB, free: 12.69 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.01213, allocations: 0 / 277.6 MB, free: 12.69 MB / 266.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001436/0.01227, allocations: 89.62 kB / 277.7 MB, free: 12.6 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.548e-06/0.01228, allocations: 7.938 kB / 277.7 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.898e-06/0.01229, allocations: 0 / 277.7 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.012e-05/0.0123, allocations: 3.938 kB / 277.7 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.637e-05/0.01238, allocations: 15.98 kB / 277.7 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.196e-06/0.01239, allocations: 11.98 kB / 277.7 MB, free: 12.56 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.95e-05/0.01246, allocations: 4 kB / 277.7 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.446e-06/0.01247, allocations: 0 / 277.7 MB, free: 12.55 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.884e-05/0.01255, allocations: 108.7 kB / 277.8 MB, free: 12.44 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.649e-05/0.01264, allocations: 47.94 kB / 277.9 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002086/0.01285, allocations: 205.6 kB / 278.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.01285, allocations: 7.938 kB / 278.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.01286, allocations: 0 / 278.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.01286, allocations: 0 / 278.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002749/0.01313, allocations: 341.1 kB / 278.4 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.01314, allocations: 0 / 278.4 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.662e-05/0.01317, allocations: 11.98 kB / 278.4 MB, free: 11.81 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.01318, allocations: 0 / 278.4 MB, free: 11.81 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.194e-06/0.01318, allocations: 0 / 278.4 MB, free: 11.81 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.01318, allocations: 4 kB / 278.4 MB, free: 11.81 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.01319, allocations: 0 / 278.4 MB, free: 11.81 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001661/0.01335, allocations: 246.6 kB / 278.7 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/0.01346, allocations: 103.4 kB / 278.8 MB, free: 11.45 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.331e-05/0.0135, allocations: 4 kB / 278.8 MB, free: 11.45 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.759e-05/0.01357, allocations: 11.98 kB / 278.8 MB, free: 11.43 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.97e-05/0.0136, allocations: 3.938 kB / 278.8 MB, free: 11.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.911e-06/0.01361, allocations: 3.984 kB / 278.8 MB, free: 11.43 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003063/0.01392, allocations: 391.7 kB / 279.2 MB, free: 11.03 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01392, allocations: 0 / 279.2 MB, free: 11.03 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001792/0.0141, allocations: 67.94 kB / 279.2 MB, free: 10.96 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.0002544/0.01435, allocations: 88.39 kB / 279.3 MB, free: 10.87 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.088e-05/0.01443, allocations: 28.84 kB / 279.4 MB, free: 10.84 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.116e-06/0.01444, allocations: 8 kB / 279.4 MB, free: 10.83 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.478e-05/0.01447, allocations: 16.8 kB / 279.4 MB, free: 10.81 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003085/0.01478, allocations: 100.2 kB / 279.5 MB, free: 10.71 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001193/0.01598, allocations: 1.117 MB / 280.6 MB, free: 9.555 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001233/0.0161, allocations: 189.2 kB / 280.8 MB, free: 9.352 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002975/0.0164, allocations: 378.2 kB / 281.2 MB, free: 8.977 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001941/0.01659, allocations: 147.3 kB / 281.3 MB, free: 8.832 MB / 266.7 MB Notification: Performance of SimCode: time 5.91e-07/0.01659, allocations: 0 / 281.3 MB, free: 8.832 MB / 266.7 MB Notification: Performance of Templates: time 0.01017/0.02676, allocations: 8.418 MB / 289.7 MB, free: 0.5234 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 -s gbode -gbm=radauIIA3 -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.833981155883521]