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.001598/0.001598, allocations: 113 kB / 19.04 MB, free: 3.254 MB / 14.72 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.001774/0.001774, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 14.72 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.449/1.449, allocations: 225.6 MB / 250.8 MB, free: 13.33 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001557/0.001557, allocations: 48.06 kB / 368.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3096/0.3112, allocations: 52.13 MB / 420.8 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003595/0.3148, allocations: 1.934 MB / 422.8 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001907/0.3167, allocations: 1.25 MB / 424 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.129e-05/0.3168, allocations: 0 / 424 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00107/0.3178, allocations: 0.5078 MB / 424.5 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002555/0.3181, allocations: 195.4 kB / 424.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004725/0.3186, allocations: 175.3 kB / 424.9 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003997/0.319, allocations: 225.5 kB / 425.1 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001116/0.3191, allocations: 13.69 kB / 425.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002512/0.3193, allocations: 119.6 kB / 425.2 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003291/0.3196, allocations: 239.4 kB / 425.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.626e-05/0.3197, allocations: 8 kB / 425.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001559/0.3198, allocations: 55.97 kB / 425.5 MB, free: 10.4 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00025/0.3201, allocations: 267.2 kB / 425.8 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003066/0.3204, allocations: 273.9 kB / 426.1 MB, free: 9.871 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009551/0.3213, allocations: 0.7852 MB / 426.9 MB, free: 9.086 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3213, allocations: 0 / 426.9 MB, free: 9.086 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3213, allocations: 0 / 426.9 MB, free: 9.086 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.303e-05/0.3214, allocations: 4 kB / 426.9 MB, free: 9.082 MB / 334.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.002808/0.3242, allocations: 1.205 MB / 428.1 MB, free: 7.824 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.531e-05/0.3242, allocations: 12.03 kB / 428.1 MB, free: 7.812 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001929/0.3244, allocations: 96.36 kB / 428.2 MB, free: 7.719 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00106/0.3255, allocations: 0.7479 MB / 428.9 MB, free: 6.918 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.897e-05/0.3255, allocations: 4.375 kB / 428.9 MB, free: 6.914 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.82e-05/0.3255, allocations: 384 / 428.9 MB, free: 6.914 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003146/0.3258, allocations: 125.9 kB / 429 MB, free: 6.785 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.3258, allocations: 4 kB / 429 MB, free: 6.781 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.012e-05/0.3259, allocations: 0 / 429 MB, free: 6.781 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.3259, allocations: 0 / 429 MB, free: 6.781 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003588/0.3262, allocations: 151.8 kB / 429.2 MB, free: 6.633 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001104/0.3273, allocations: 0.8181 MB / 430 MB, free: 5.766 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000223/0.3275, allocations: 90.52 kB / 430.1 MB, free: 5.668 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001727/0.3277, allocations: 76.83 kB / 430.2 MB, free: 5.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.346e-05/0.3277, allocations: 4 kB / 430.2 MB, free: 5.586 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.264e-05/0.3278, allocations: 30.56 kB / 430.2 MB, free: 5.547 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.133e-06/0.3278, allocations: 0 / 430.2 MB, free: 5.547 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.000823/0.3286, allocations: 332.9 kB / 430.5 MB, free: 5.215 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.724e-05/0.3287, allocations: 55.41 kB / 430.6 MB, free: 5.148 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001742/0.3304, allocations: 1.401 MB / 432 MB, free: 3.727 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.712e-05/0.3304, allocations: 25.7 kB / 432 MB, free: 3.695 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003727/0.3308, allocations: 388.4 kB / 432.4 MB, free: 3.312 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.957e-05/0.3308, allocations: 7.906 kB / 432.4 MB, free: 3.305 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.835e-05/0.3309, allocations: 25.7 kB / 432.4 MB, free: 3.273 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.331, allocations: 306 kB / 432.7 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001677/0.3312, allocations: 71.94 kB / 432.8 MB, free: 2.898 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000176/0.3314, allocations: 86.52 kB / 432.9 MB, free: 2.805 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003322/0.3317, allocations: 162.3 kB / 433 MB, free: 2.637 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-06/0.3317, allocations: 0 / 433 MB, free: 2.637 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005444/0.3323, allocations: 268.9 kB / 433.3 MB, free: 2.367 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.3323, allocations: 4 kB / 433.3 MB, free: 2.363 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.3323, allocations: 4 kB / 433.3 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.3323, allocations: 0 / 433.3 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001913/0.3325, allocations: 15.98 kB / 433.3 MB, free: 2.344 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/0.3325, allocations: 8.094 kB / 433.3 MB, free: 2.336 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001839/0.3327, allocations: 7.984 kB / 433.3 MB, free: 2.328 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.953e-05/0.3327, allocations: 4 kB / 433.3 MB, free: 2.324 MB / 334.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.0003652/0.3331, allocations: 345.5 kB / 433.7 MB, free: 1.977 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001777/0.3332, allocations: 99.36 kB / 433.8 MB, free: 1.879 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006181/0.3339, allocations: 277.6 kB / 434 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.718e-06/0.3339, allocations: 0 / 434 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/0.3339, allocations: 0 / 434 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.3339, allocations: 3.984 kB / 434.1 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005882/0.3345, allocations: 0.5104 MB / 434.6 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.3345, allocations: 3.938 kB / 434.6 MB, free: 1.027 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.152e-05/0.3346, allocations: 15.98 kB / 434.6 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.3346, allocations: 0 / 434.6 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.515e-05/0.3346, allocations: 4 kB / 434.6 MB, free: 1.008 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.3346, allocations: 0 / 434.6 MB, free: 1.008 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3346, allocations: 0 / 434.6 MB, free: 1.008 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005304/0.3351, allocations: 327.2 kB / 434.9 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003085/0.3354, allocations: 240.4 kB / 435.1 MB, free: 428 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.408e-05/0.3355, allocations: 0 / 435.1 MB, free: 428 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00018/0.3357, allocations: 4 kB / 435.1 MB, free: 424 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.817e-05/0.3357, allocations: 7.984 kB / 435.2 MB, free: 416 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.053e-05/0.3357, allocations: 7.938 kB / 435.2 MB, free: 408 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001258/0.337, allocations: 1.013 MB / 436.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.337, allocations: 0 / 436.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003295/0.3373, allocations: 60 kB / 436.2 MB, free: 15.31 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.0002388/0.3376, allocations: 112 kB / 436.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004024/0.338, allocations: 127.8 kB / 436.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.338, allocations: 0 / 436.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000163/0.3381, allocations: 55.95 kB / 436.5 MB, free: 15.01 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006025/0.3387, allocations: 92.58 kB / 436.6 MB, free: 14.92 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00216/0.3409, allocations: 1.391 MB / 438 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006765/0.3416, allocations: 1.008 MB / 439 MB, free: 12.47 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006997/0.3423, allocations: 466.1 kB / 439.5 MB, free: 12.01 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001218/0.3424, allocations: 39.44 kB / 439.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3424, allocations: 0 / 439.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of Templates: time 0.01565/0.358, allocations: 7.54 MB / 447 MB, free: 4.477 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 4.748207107186317]