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.001814/0.001814, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.003111/0.003111, allocations: 207.2 kB / 23.73 MB, free: 4.523 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.546/1.546, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.001564/0.001564, allocations: 51.91 kB / 378.2 MB, free: 2.496 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3111/0.3126, allocations: 53.38 MB / 431.6 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003578/0.3162, allocations: 1.858 MB / 433.4 MB, free: 4.859 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002135/0.3183, allocations: 1.143 MB / 434.6 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001236/0.3185, allocations: 0 / 434.6 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001239/0.3197, allocations: 494.6 kB / 435 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002721/0.32, allocations: 199.4 kB / 435.2 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005481/0.3205, allocations: 159.4 kB / 435.4 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000382/0.3209, allocations: 223.1 kB / 435.6 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.47e-05/0.321, allocations: 9.812 kB / 435.6 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000246/0.3212, allocations: 139.5 kB / 435.8 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003031/0.3215, allocations: 227.4 kB / 436 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3e-05/0.3216, allocations: 8 kB / 436 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001649/0.3217, allocations: 59.95 kB / 436 MB, free: 2.219 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002519/0.322, allocations: 259.3 kB / 436.3 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002101/0.3222, allocations: 202.4 kB / 436.5 MB, free: 1.766 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009002/0.3231, allocations: 0.7892 MB / 437.3 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/0.3231, allocations: 3.984 kB / 437.3 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3231, allocations: 0 / 437.3 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.352e-05/0.3231, allocations: 0 / 437.3 MB, free: 0.9727 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.002864/0.326, allocations: 1.133 MB / 438.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.326, allocations: 12.03 kB / 438.4 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002075/0.3262, allocations: 100.3 kB / 438.5 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001205/0.3275, allocations: 0.6954 MB / 439.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.463e-05/0.3275, allocations: 384 / 439.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.542e-05/0.3275, allocations: 4.375 kB / 439.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002994/0.3278, allocations: 117.9 kB / 439.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.3278, allocations: 0 / 439.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.693e-05/0.3278, allocations: 0 / 439.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.3278, allocations: 8 kB / 439.4 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000357/0.3282, allocations: 143.8 kB / 439.5 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001137/0.3293, allocations: 0.6887 MB / 440.2 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002358/0.3296, allocations: 86.45 kB / 440.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001762/0.3297, allocations: 72.91 kB / 440.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.92e-05/0.3298, allocations: 0 / 440.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.149e-05/0.3298, allocations: 34.5 kB / 440.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 7.62e-07/0.3298, allocations: 4 kB / 440.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008131/0.3306, allocations: 332.9 kB / 440.7 MB, free: 13.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.32e-05/0.3306, allocations: 51.41 kB / 440.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001809/0.3325, allocations: 1.405 MB / 442.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.46e-05/0.3325, allocations: 29.64 kB / 442.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004176/0.3329, allocations: 388.4 kB / 442.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.552e-05/0.3329, allocations: 15.86 kB / 442.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.178e-05/0.333, allocations: 17.72 kB / 442.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.3332, allocations: 317.9 kB / 442.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001941/0.3334, allocations: 67.94 kB / 443 MB, free: 11.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001959/0.3335, allocations: 90.69 kB / 443.1 MB, free: 11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003622/0.3339, allocations: 154.4 kB / 443.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3339, allocations: 0 / 443.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005957/0.3345, allocations: 280.8 kB / 443.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.3345, allocations: 4 kB / 443.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.3345, allocations: 0 / 443.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.839e-05/0.3346, allocations: 4 kB / 443.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001889/0.3347, allocations: 15.98 kB / 443.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.3347, allocations: 3.938 kB / 443.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001786/0.3349, allocations: 12.08 kB / 443.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.467e-05/0.3349, allocations: 4 kB / 443.5 MB, free: 10.51 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.0003766/0.3353, allocations: 341.6 kB / 443.9 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001823/0.3355, allocations: 91.42 kB / 444 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006064/0.3361, allocations: 273.4 kB / 444.2 MB, free: 9.801 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.3361, allocations: 0 / 444.2 MB, free: 9.801 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.3361, allocations: 4 kB / 444.2 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.3361, allocations: 0 / 444.2 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000504/0.3366, allocations: 410 kB / 444.6 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/0.3366, allocations: 3.938 kB / 444.6 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.613e-05/0.3367, allocations: 11.98 kB / 444.6 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.3367, allocations: 3.938 kB / 444.6 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.319e-05/0.3367, allocations: 4 kB / 444.7 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.3367, allocations: 4 kB / 444.7 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3367, allocations: 0 / 444.7 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005535/0.3373, allocations: 315.5 kB / 445 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004112/0.3377, allocations: 167.3 kB / 445.1 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.757e-05/0.3378, allocations: 0 / 445.1 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001859/0.3379, allocations: 4 kB / 445.1 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.663e-05/0.338, allocations: 3.984 kB / 445.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/0.338, allocations: 4 kB / 445.1 MB, free: 8.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001372/0.3394, allocations: 1.013 MB / 446.2 MB, free: 7.816 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3394, allocations: 4 kB / 446.2 MB, free: 7.812 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003582/0.3397, allocations: 67.94 kB / 446.2 MB, free: 7.746 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.0002142/0.3399, allocations: 111.2 kB / 446.3 MB, free: 7.625 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004053/0.3404, allocations: 131.8 kB / 446.5 MB, free: 7.496 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3404, allocations: 4.188 kB / 446.5 MB, free: 7.492 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001691/0.3405, allocations: 47.91 kB / 446.5 MB, free: 7.445 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006091/0.3411, allocations: 106.2 kB / 446.6 MB, free: 7.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001986/0.3431, allocations: 1.38 MB / 448 MB, free: 5.934 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004842/0.3436, allocations: 408.1 kB / 448.4 MB, free: 5.512 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006644/0.3443, allocations: 470.2 kB / 448.9 MB, free: 5.047 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001191/0.3444, allocations: 47.38 kB / 448.9 MB, free: 5 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3444, allocations: 0 / 448.9 MB, free: 5 MB / 350.1 MB Notification: Performance of Templates: time 0.0169/0.3613, allocations: 8.595 MB / 457.5 MB, free: 12.48 MB / 366.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.027698507998139]