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.001516/0.001516, allocations: 112.2 kB / 21.19 MB, free: 0.7734 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.001777/0.001777, allocations: 210.1 kB / 24.5 MB, free: 4.152 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.398/1.398, allocations: 230.6 MB / 258.3 MB, free: 8.012 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.001655/0.001655, allocations: 43.92 kB / 379 MB, free: 2.648 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2469/0.2485, allocations: 53.38 MB / 432.4 MB, free: 6.922 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.00328/0.2518, allocations: 1.932 MB / 434.3 MB, free: 4.984 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00192/0.2537, allocations: 1.261 MB / 435.6 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.172e-05/0.2538, allocations: 7.938 kB / 435.6 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001015/0.2548, allocations: 0.5 MB / 436.1 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002416/0.2551, allocations: 203.3 kB / 436.3 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004422/0.2555, allocations: 171.4 kB / 436.4 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004067/0.2559, allocations: 223.1 kB / 436.7 MB, free: 2.621 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.254e-05/0.256, allocations: 9.812 kB / 436.7 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002997/0.2563, allocations: 131.5 kB / 436.8 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003249/0.2566, allocations: 231.4 kB / 437 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.98e-05/0.2567, allocations: 12 kB / 437 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001582/0.2568, allocations: 63.84 kB / 437.1 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002218/0.257, allocations: 263.3 kB / 437.4 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002705/0.2573, allocations: 277.9 kB / 437.6 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000882/0.2582, allocations: 0.7736 MB / 438.4 MB, free: 0.875 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2582, allocations: 0 / 438.4 MB, free: 0.875 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2582, allocations: 0 / 438.4 MB, free: 0.875 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.437e-05/0.2582, allocations: 0 / 438.4 MB, free: 0.875 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.003/0.2612, allocations: 1.137 MB / 439.5 MB, free: 15.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.2613, allocations: 16.03 kB / 439.6 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002254/0.2615, allocations: 96.31 kB / 439.6 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001195/0.2627, allocations: 0.6992 MB / 440.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.837e-05/0.2627, allocations: 4.375 kB / 440.4 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.659e-05/0.2627, allocations: 384 / 440.4 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002985/0.263, allocations: 121.9 kB / 440.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.263, allocations: 0 / 440.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.425e-05/0.263, allocations: 0 / 440.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.2631, allocations: 4 kB / 440.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003491/0.2634, allocations: 143.9 kB / 440.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001275/0.2647, allocations: 0.786 MB / 441.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002106/0.2649, allocations: 82.53 kB / 441.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00018/0.2651, allocations: 76.89 kB / 441.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.806e-05/0.2651, allocations: 0 / 441.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.107e-05/0.2651, allocations: 34.56 kB / 441.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.2651, allocations: 0 / 441.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.000837/0.266, allocations: 328.9 kB / 441.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.111e-05/0.266, allocations: 55.39 kB / 442 MB, free: 13.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001844/0.2678, allocations: 1.405 MB / 443.4 MB, free: 11.72 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.26e-05/0.2679, allocations: 25.7 kB / 443.4 MB, free: 11.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003615/0.2682, allocations: 388.4 kB / 443.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.063e-05/0.2683, allocations: 11.89 kB / 443.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.57e-05/0.2683, allocations: 21.7 kB / 443.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.2684, allocations: 313.9 kB / 444.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001724/0.2686, allocations: 63.94 kB / 444.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001773/0.2688, allocations: 90.52 kB / 444.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003423/0.2691, allocations: 162.3 kB / 444.4 MB, free: 10.63 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.2691, allocations: 0 / 444.4 MB, free: 10.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005914/0.2697, allocations: 269 kB / 444.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.2697, allocations: 6.5 kB / 444.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.2698, allocations: 0 / 444.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.963e-05/0.2698, allocations: 4 kB / 444.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001832/0.27, allocations: 15.97 kB / 444.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.27, allocations: 0 / 444.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002027/0.2702, allocations: 15.89 kB / 444.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.362e-05/0.2702, allocations: 4.094 kB / 444.7 MB, free: 10.32 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.0003508/0.2705, allocations: 345.6 kB / 445.1 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000185/0.2707, allocations: 91.66 kB / 445.2 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006018/0.2713, allocations: 277.4 kB / 445.4 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.046e-06/0.2713, allocations: 7.984 kB / 445.4 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.2713, allocations: 0 / 445.4 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.2713, allocations: 0 / 445.4 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005713/0.2719, allocations: 497.7 kB / 445.9 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.2719, allocations: 0 / 445.9 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.156e-05/0.272, allocations: 11.98 kB / 445.9 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.272, allocations: 0 / 445.9 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.272, allocations: 4 kB / 445.9 MB, free: 9.047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.272, allocations: 0 / 445.9 MB, free: 9.047 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.272, allocations: 0 / 445.9 MB, free: 9.047 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005203/0.2725, allocations: 335.2 kB / 446.3 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003723/0.2729, allocations: 151.3 kB / 446.4 MB, free: 8.555 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.4e-05/0.273, allocations: 0 / 446.4 MB, free: 8.555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002008/0.2732, allocations: 15.98 kB / 446.4 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.015e-05/0.2732, allocations: 0 / 446.4 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.885e-06/0.2732, allocations: 0 / 446.4 MB, free: 8.539 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00135/0.2746, allocations: 1.017 MB / 447.4 MB, free: 7.512 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2746, allocations: 4 kB / 447.5 MB, free: 7.508 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003502/0.2749, allocations: 63.94 kB / 447.5 MB, free: 7.445 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.0001952/0.2751, allocations: 107.2 kB / 447.6 MB, free: 7.328 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003983/0.2755, allocations: 123.8 kB / 447.7 MB, free: 7.207 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2755, allocations: 0 / 447.7 MB, free: 7.207 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001745/0.2757, allocations: 56.05 kB / 447.8 MB, free: 7.152 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005989/0.2763, allocations: 110 kB / 447.9 MB, free: 7.043 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002165/0.2785, allocations: 1.44 MB / 449.3 MB, free: 5.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006938/0.2791, allocations: 0.9967 MB / 450.3 MB, free: 4.547 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001306/0.2793, allocations: 39.44 kB / 450.4 MB, free: 4.508 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2793, allocations: 0 / 450.4 MB, free: 4.508 MB / 350.1 MB Notification: Performance of Templates: time 0.01617/0.2954, allocations: 9.194 MB / 459.6 MB, free: 11.34 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: 7.541392759885639]