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.001427/0.001427, allocations: 124.5 kB / 17.79 MB, free: 5.227 MB / 14.72 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.001453/0.001453, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 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.589/1.589, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001626/0.001626, allocations: 43.94 kB / 373.4 MB, free: 9.738 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1072, allocations: 53.35 MB / 426.8 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.004128/0.1113, allocations: 1.918 MB / 428.7 MB, free: 2.371 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002208/0.1135, allocations: 1.261 MB / 430 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001098/0.1136, allocations: 0 / 430 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001156/0.1148, allocations: 0.5024 MB / 430.5 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002684/0.1151, allocations: 191.4 kB / 430.7 MB, free: 420 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004964/0.1155, allocations: 175.3 kB / 430.8 MB, free: 244 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003793/0.1159, allocations: 223.1 kB / 431 MB, free: 20 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.206/0.3219, allocations: 18.69 kB / 431.1 MB, free: 8.793 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006163/0.3225, allocations: 124.2 kB / 431.2 MB, free: 8.793 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004599/0.323, allocations: 232.9 kB / 431.4 MB, free: 8.777 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.8e-05/0.323, allocations: 7.062 kB / 431.4 MB, free: 8.777 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002613/0.3233, allocations: 61.86 kB / 431.5 MB, free: 8.777 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000291/0.3236, allocations: 264.1 kB / 431.7 MB, free: 8.742 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002585/0.3238, allocations: 279.3 kB / 432 MB, free: 8.617 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001114/0.3249, allocations: 0.7709 MB / 432.8 MB, free: 8.465 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3249, allocations: 1.984 kB / 432.8 MB, free: 8.465 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3249, allocations: 1.812 kB / 432.8 MB, free: 8.465 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.074e-05/0.325, allocations: 0 / 432.8 MB, free: 8.465 MB / 350.1 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.003479/0.3284, allocations: 1.21 MB / 434 MB, free: 7.699 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.475e-05/0.3285, allocations: 10.12 kB / 434 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002952/0.3288, allocations: 97.45 kB / 434.1 MB, free: 7.648 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001305/0.3301, allocations: 0.7571 MB / 434.9 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.99e-05/0.3301, allocations: 5.688 kB / 434.9 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.313e-05/0.3301, allocations: 3.969 kB / 434.9 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004422/0.3306, allocations: 118 kB / 435 MB, free: 7.254 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.719e-05/0.3306, allocations: 4.906 kB / 435 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.571e-05/0.3306, allocations: 0 / 435 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.3306, allocations: 1.688 kB / 435 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000591/0.3312, allocations: 145.1 kB / 435.1 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002311/0.3335, allocations: 0.8065 MB / 435.9 MB, free: 6.988 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003894/0.3339, allocations: 93.14 kB / 436 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000323/0.3343, allocations: 71.2 kB / 436.1 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.716e-05/0.3343, allocations: 0 / 436.1 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.542e-05/0.3343, allocations: 38.39 kB / 436.1 MB, free: 6.914 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.3343, allocations: 0 / 436.1 MB, free: 6.914 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.001586/0.3359, allocations: 326.8 kB / 436.5 MB, free: 6.836 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.088e-05/0.336, allocations: 53.75 kB / 436.5 MB, free: 6.773 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003732/0.3397, allocations: 1.406 MB / 437.9 MB, free: 6.562 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.604e-05/0.3397, allocations: 25.7 kB / 437.9 MB, free: 6.531 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004283/0.3401, allocations: 390.1 kB / 438.3 MB, free: 6.227 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.679e-05/0.3402, allocations: 9.969 kB / 438.3 MB, free: 6.223 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.176e-05/0.3403, allocations: 20.28 kB / 438.3 MB, free: 6.203 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.47e-05/0.3403, allocations: 308.1 kB / 438.7 MB, free: 5.898 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002613/0.3406, allocations: 68.23 kB / 438.7 MB, free: 5.875 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002766/0.3409, allocations: 86 kB / 438.8 MB, free: 5.828 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005102/0.3414, allocations: 161 kB / 439 MB, free: 5.758 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.3414, allocations: 3.938 kB / 439 MB, free: 5.754 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0009904/0.3424, allocations: 269.7 kB / 439.2 MB, free: 5.629 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.924e-05/0.3424, allocations: 8.219 kB / 439.2 MB, free: 5.629 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.507e-06/0.3424, allocations: 1.219 kB / 439.2 MB, free: 5.629 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.521e-05/0.3424, allocations: 1.031 kB / 439.2 MB, free: 5.629 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002834/0.3427, allocations: 18.72 kB / 439.3 MB, free: 5.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/0.3427, allocations: 5.094 kB / 439.3 MB, free: 5.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003666/0.3431, allocations: 13.7 kB / 439.3 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.88e-05/0.3431, allocations: 3.75 kB / 439.3 MB, free: 5.621 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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.0006686/0.3438, allocations: 342.3 kB / 439.6 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003018/0.3441, allocations: 89.22 kB / 439.7 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009551/0.345, allocations: 275.3 kB / 440 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/0.3451, allocations: 0.6562 kB / 440 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.3451, allocations: 5.156 kB / 440 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.3451, allocations: 0.7031 kB / 440 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009734/0.346, allocations: 0.5156 MB / 440.5 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.346, allocations: 2.281 kB / 440.5 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001411/0.3462, allocations: 15.59 kB / 440.5 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.3462, allocations: 4.25 kB / 440.5 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.702e-05/0.3462, allocations: 1.688 kB / 440.5 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.3462, allocations: 0.5 kB / 440.5 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.3462, allocations: 1.094 kB / 440.5 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008023/0.347, allocations: 326.3 kB / 440.8 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004025/0.3474, allocations: 228 kB / 441.1 MB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001041/0.3475, allocations: 1.25 kB / 441.1 MB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003114/0.3478, allocations: 11.69 kB / 441.1 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.98e-05/0.3479, allocations: 6.734 kB / 441.1 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.355e-05/0.3479, allocations: 1.156 kB / 441.1 MB, free: 4.594 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001958/0.3499, allocations: 1.014 MB / 442.1 MB, free: 4.258 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3499, allocations: 5.125 kB / 442.1 MB, free: 4.254 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006424/0.3505, allocations: 60.83 kB / 442.2 MB, free: 4.254 MB / 350.1 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.0002299/0.3507, allocations: 116.6 kB / 442.3 MB, free: 4.156 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006231/0.3514, allocations: 124 kB / 442.4 MB, free: 4.117 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.3514, allocations: 3.938 kB / 442.4 MB, free: 4.113 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002583/0.3516, allocations: 57.11 kB / 442.4 MB, free: 4.098 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009418/0.3526, allocations: 106.4 kB / 442.6 MB, free: 4.043 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002754/0.3553, allocations: 1.376 MB / 443.9 MB, free: 3.438 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007462/0.3561, allocations: 0.9953 MB / 444.9 MB, free: 2.691 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001027/0.3571, allocations: 474.3 kB / 445.4 MB, free: 2.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001752/0.3573, allocations: 37.33 kB / 445.4 MB, free: 2.652 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3573, allocations: 0 / 445.4 MB, free: 2.652 MB / 350.1 MB Notification: Performance of Templates: time 0.01776/0.375, allocations: 7.499 MB / 452.9 MB, free: 0.6211 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.042579114437103]