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.00162/0.00162, allocations: 120 kB / 18.46 MB, free: 4.617 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.00187/0.00187, allocations: 212.3 kB / 21.42 MB, free: 1.664 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.545/1.545, allocations: 230.6 MB / 254.8 MB, free: 15.07 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.001631/0.001631, allocations: 43.92 kB / 374.1 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1069, allocations: 53.33 MB / 427.5 MB, free: 4.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003693/0.1105, allocations: 1.933 MB / 429.4 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002209/0.1128, allocations: 1.246 MB / 430.6 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001555/0.1129, allocations: 7.938 kB / 430.6 MB, free: 1.066 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001208/0.1141, allocations: 0.4985 MB / 431.1 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002795/0.1144, allocations: 199.4 kB / 431.3 MB, free: 380 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004964/0.1149, allocations: 167.4 kB / 431.5 MB, free: 212 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2021/0.317, allocations: 226.2 kB / 431.7 MB, free: 8.305 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.3172, allocations: 12.25 kB / 431.7 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004517/0.3176, allocations: 124.1 kB / 431.9 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004646/0.3181, allocations: 236.5 kB / 432.1 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.869e-05/0.3181, allocations: 8.656 kB / 432.1 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002432/0.3184, allocations: 63.27 kB / 432.2 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002823/0.3186, allocations: 266.1 kB / 432.4 MB, free: 8.246 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002546/0.3189, allocations: 274.8 kB / 432.7 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009157/0.3198, allocations: 0.7718 MB / 433.5 MB, free: 7.973 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.3198, allocations: 4.25 kB / 433.5 MB, free: 7.973 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3198, allocations: 1.406 kB / 433.5 MB, free: 7.973 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.587e-05/0.3198, allocations: 0 / 433.5 MB, free: 7.973 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.002796/0.3226, allocations: 1.215 MB / 434.7 MB, free: 7.203 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/0.3227, allocations: 10.06 kB / 434.7 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002053/0.3229, allocations: 94.53 kB / 434.8 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009719/0.3239, allocations: 0.7536 MB / 435.5 MB, free: 6.793 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/0.3239, allocations: 4.844 kB / 435.5 MB, free: 6.793 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.366e-05/0.3239, allocations: 1.781 kB / 435.5 MB, free: 6.793 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003003/0.3242, allocations: 117.4 kB / 435.7 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.3242, allocations: 3.938 kB / 435.7 MB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.678e-05/0.3242, allocations: 1.156 kB / 435.7 MB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.3242, allocations: 0 / 435.7 MB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003672/0.3246, allocations: 149.1 kB / 435.8 MB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001185/0.3258, allocations: 0.8068 MB / 436.6 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002228/0.326, allocations: 87.94 kB / 436.7 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001831/0.3262, allocations: 76.72 kB / 436.8 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.956e-05/0.3262, allocations: 1.312 kB / 436.8 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.654e-05/0.3262, allocations: 35.44 kB / 436.8 MB, free: 6.422 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.412e-06/0.3262, allocations: 0 / 436.8 MB, free: 6.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008644/0.3271, allocations: 328.5 kB / 437.1 MB, free: 6.344 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.38e-05/0.3271, allocations: 52.59 kB / 437.2 MB, free: 6.281 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001839/0.329, allocations: 1.406 MB / 438.6 MB, free: 6.137 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.789e-05/0.329, allocations: 27.7 kB / 438.6 MB, free: 6.105 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002954/0.3293, allocations: 389.5 kB / 439 MB, free: 6.008 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.778e-05/0.3293, allocations: 6.812 kB / 439 MB, free: 6.004 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.921e-05/0.3294, allocations: 24.72 kB / 439 MB, free: 5.984 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.916e-05/0.3294, allocations: 308.3 kB / 439.3 MB, free: 5.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000191/0.3296, allocations: 71.61 kB / 439.4 MB, free: 5.652 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001807/0.3298, allocations: 84.58 kB / 439.5 MB, free: 5.609 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003491/0.3301, allocations: 156.7 kB / 439.6 MB, free: 5.539 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.3301, allocations: 5.062 kB / 439.6 MB, free: 5.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006225/0.3308, allocations: 270.2 kB / 439.9 MB, free: 5.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.3308, allocations: 6.562 kB / 439.9 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.3308, allocations: 2.375 kB / 439.9 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.3308, allocations: 1.625 kB / 439.9 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001921/0.331, allocations: 15.38 kB / 439.9 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.331, allocations: 1.969 kB / 439.9 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002308/0.3312, allocations: 17.52 kB / 439.9 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.871e-05/0.3313, allocations: 6.953 kB / 440 MB, free: 5.398 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.0003292/0.3316, allocations: 341 kB / 440.3 MB, free: 5.227 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001884/0.3318, allocations: 91.56 kB / 440.4 MB, free: 5.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006278/0.3324, allocations: 277.7 kB / 440.6 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.3324, allocations: 4.656 kB / 440.7 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.3324, allocations: 1 kB / 440.7 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.3324, allocations: 0 / 440.7 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006946/0.3331, allocations: 0.5136 MB / 441.2 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.3331, allocations: 5.078 kB / 441.2 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.434e-05/0.3332, allocations: 15.06 kB / 441.2 MB, free: 4.762 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.626e-06/0.3332, allocations: 1.156 kB / 441.2 MB, free: 4.762 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.3332, allocations: 1.906 kB / 441.2 MB, free: 4.762 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.3332, allocations: 0 / 441.2 MB, free: 4.762 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.3332, allocations: 0.625 kB / 441.2 MB, free: 4.762 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005338/0.3338, allocations: 325.6 kB / 441.5 MB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002876/0.334, allocations: 231.6 kB / 441.7 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.144e-05/0.3341, allocations: 1.594 kB / 441.7 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001965/0.3343, allocations: 7.359 kB / 441.7 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.122e-05/0.3344, allocations: 5.109 kB / 441.7 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.919e-06/0.3344, allocations: 1.797 kB / 441.8 MB, free: 4.379 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00128/0.3357, allocations: 1.018 MB / 442.8 MB, free: 4.039 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3357, allocations: 0 / 442.8 MB, free: 4.039 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003759/0.336, allocations: 65.47 kB / 442.8 MB, free: 4.035 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.0001806/0.3362, allocations: 112 kB / 442.9 MB, free: 3.938 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004194/0.3366, allocations: 131.2 kB / 443.1 MB, free: 3.895 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3366, allocations: 0 / 443.1 MB, free: 3.895 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001701/0.3368, allocations: 48.98 kB / 443.1 MB, free: 3.883 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006137/0.3374, allocations: 117.3 kB / 443.2 MB, free: 3.828 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001865/0.3393, allocations: 1.43 MB / 444.7 MB, free: 3.172 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005285/0.3398, allocations: 0.9978 MB / 445.7 MB, free: 2.422 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001381/0.34, allocations: 39.16 kB / 445.7 MB, free: 2.414 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.34, allocations: 4 kB / 445.7 MB, free: 2.41 MB / 350.1 MB Notification: Performance of Templates: time 0.01688/0.3568, allocations: 9.175 MB / 454.9 MB, free: 15.49 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/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_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: 8.34755352398497]