Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00639/0.00639, allocations: 108.3 kB / 21.97 MB, free: 5.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001505/0.001505, allocations: 220.3 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.417/1.417, allocations: 230.6 MB / 259 MB, free: 8.031 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002613/0.002613, allocations: 63.89 kB / 379.8 MB, free: 2.773 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2973/0.2999, allocations: 53.36 MB / 433.2 MB, free: 7.004 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003448/0.3033, allocations: 1.936 MB / 435.1 MB, free: 5.062 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001908/0.3053, allocations: 1.265 MB / 436.4 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.298e-05/0.3053, allocations: 0 / 436.4 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001024/0.3064, allocations: 0.5001 MB / 436.9 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002371/0.3066, allocations: 203.4 kB / 437.1 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004386/0.307, allocations: 167.3 kB / 437.2 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003419/0.3074, allocations: 227.1 kB / 437.4 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.273e-05/0.3075, allocations: 9.797 kB / 437.4 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002517/0.3077, allocations: 127.6 kB / 437.6 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003218/0.308, allocations: 231.4 kB / 437.8 MB, free: 2.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.474e-05/0.3081, allocations: 8 kB / 437.8 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000144/0.3082, allocations: 55.97 kB / 437.9 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000246/0.3085, allocations: 275.2 kB / 438.1 MB, free: 2.008 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002742/0.3087, allocations: 277.9 kB / 438.4 MB, free: 1.734 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008834/0.3096, allocations: 0.7814 MB / 439.2 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3096, allocations: 0 / 439.2 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3096, allocations: 0 / 439.2 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.296e-06/0.3096, allocations: 3.938 kB / 439.2 MB, free: 0.9492 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.002673/0.3123, allocations: 1.13 MB / 440.3 MB, free: 15.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.3123, allocations: 12.02 kB / 440.3 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001868/0.3125, allocations: 92.33 kB / 440.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001122/0.3136, allocations: 0.707 MB / 441.1 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.348e-06/0.3137, allocations: 384 / 441.1 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.517e-05/0.3137, allocations: 4.375 kB / 441.1 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002979/0.314, allocations: 125.8 kB / 441.3 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.314, allocations: 0 / 441.3 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.614e-05/0.314, allocations: 4 kB / 441.3 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.314, allocations: 4 kB / 441.3 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003611/0.3144, allocations: 143.9 kB / 441.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001136/0.3155, allocations: 0.7821 MB / 442.2 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002246/0.3157, allocations: 82.52 kB / 442.3 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001843/0.3159, allocations: 72.89 kB / 442.3 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.401e-05/0.3159, allocations: 7.938 kB / 442.3 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.914e-05/0.316, allocations: 34.56 kB / 442.4 MB, free: 13.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.316, allocations: 0 / 442.4 MB, free: 13.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008685/0.3168, allocations: 325 kB / 442.7 MB, free: 13.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.212e-05/0.3169, allocations: 51.41 kB / 442.7 MB, free: 13.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001803/0.3187, allocations: 1.409 MB / 444.2 MB, free: 11.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.366e-05/0.3187, allocations: 29.7 kB / 444.2 MB, free: 11.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003719/0.3191, allocations: 384.4 kB / 444.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.211e-05/0.3191, allocations: 15.89 kB / 444.6 MB, free: 11.37 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.993e-05/0.3192, allocations: 17.72 kB / 444.6 MB, free: 11.35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.3194, allocations: 310 kB / 444.9 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001782/0.3195, allocations: 63.95 kB / 445 MB, free: 10.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001903/0.3197, allocations: 94.45 kB / 445 MB, free: 10.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003547/0.3201, allocations: 154.4 kB / 445.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3201, allocations: 0 / 445.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006075/0.3207, allocations: 272.9 kB / 445.5 MB, free: 10.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.3207, allocations: 4 kB / 445.5 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.3207, allocations: 4 kB / 445.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.3207, allocations: 0 / 445.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001934/0.3209, allocations: 15.92 kB / 445.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.056e-06/0.3209, allocations: 4 kB / 445.5 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001913/0.3211, allocations: 11.94 kB / 445.5 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.568e-05/0.3211, allocations: 4 kB / 445.5 MB, free: 10.4 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.0003554/0.3215, allocations: 345.7 kB / 445.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001796/0.3217, allocations: 95.41 kB / 445.9 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006225/0.3223, allocations: 281.7 kB / 446.2 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/0.3223, allocations: 0 / 446.2 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.3223, allocations: 3.938 kB / 446.2 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3223, allocations: 0 / 446.2 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005666/0.3229, allocations: 497.7 kB / 446.7 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.3229, allocations: 3.984 kB / 446.7 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.88e-05/0.323, allocations: 11.98 kB / 446.7 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.323, allocations: 0 / 446.7 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/0.323, allocations: 4 kB / 446.7 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.323, allocations: 0 / 446.7 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.323, allocations: 4 kB / 446.7 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005242/0.3235, allocations: 323.3 kB / 447 MB, free: 8.785 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000352/0.3239, allocations: 151.3 kB / 447.2 MB, free: 8.637 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.564e-05/0.3239, allocations: 7.984 kB / 447.2 MB, free: 8.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001848/0.3241, allocations: 4 kB / 447.2 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.201e-05/0.3242, allocations: 3.984 kB / 447.2 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.859e-06/0.3242, allocations: 8 kB / 447.2 MB, free: 8.613 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001293/0.3255, allocations: 1.013 MB / 448.2 MB, free: 7.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3255, allocations: 0 / 448.2 MB, free: 7.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003301/0.3258, allocations: 67.94 kB / 448.3 MB, free: 7.523 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.0001885/0.326, allocations: 107.2 kB / 448.4 MB, free: 7.406 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004137/0.3264, allocations: 127.9 kB / 448.5 MB, free: 7.281 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.3264, allocations: 0 / 448.5 MB, free: 7.281 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001644/0.3266, allocations: 51.89 kB / 448.6 MB, free: 7.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005884/0.3271, allocations: 112.7 kB / 448.7 MB, free: 7.121 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002043/0.3292, allocations: 1.432 MB / 450.1 MB, free: 5.656 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006869/0.3299, allocations: 0.9967 MB / 451.1 MB, free: 4.633 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001303/0.33, allocations: 43.44 kB / 451.2 MB, free: 4.59 MB / 350.1 MB Notification: Performance of SimCode: time 7.81e-07/0.33, allocations: 0 / 451.2 MB, free: 4.59 MB / 350.1 MB Notification: Performance of Templates: time 0.01519/0.3452, allocations: 9.192 MB / 460.3 MB, free: 11.41 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 7.953194138826802]