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.001367/0.001367, allocations: 96.03 kB / 21.18 MB, free: 0.5312 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.001461/0.001461, allocations: 185 kB / 24.46 MB, free: 3.863 MB / 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.418/1.418, allocations: 225.7 MB / 253.3 MB, free: 12.86 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.001865/0.001865, allocations: 47.92 kB / 371.6 MB, free: 9.219 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2731, allocations: 52.18 MB / 423.8 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003308/0.2764, allocations: 1.864 MB / 425.7 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0019/0.2783, allocations: 1.113 MB / 426.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001057/0.2784, allocations: 4 kB / 426.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001156/0.2796, allocations: 494.4 kB / 427.3 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002682/0.2798, allocations: 195.4 kB / 427.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004578/0.2803, allocations: 163.4 kB / 427.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003199/0.2806, allocations: 229.3 kB / 427.8 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.874e-05/0.2807, allocations: 5.812 kB / 427.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000213/0.2809, allocations: 131.5 kB / 428 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003039/0.2812, allocations: 223.4 kB / 428.2 MB, free: 10.06 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.905e-05/0.2813, allocations: 8 kB / 428.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001589/0.2814, allocations: 67.89 kB / 428.3 MB, free: 9.988 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000235/0.2816, allocations: 259.3 kB / 428.5 MB, free: 9.734 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001929/0.2818, allocations: 202.4 kB / 428.7 MB, free: 9.535 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008513/0.2827, allocations: 0.7885 MB / 429.5 MB, free: 8.746 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.2827, allocations: 0 / 429.5 MB, free: 8.746 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2827, allocations: 0 / 429.5 MB, free: 8.746 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.2827, allocations: 0 / 429.5 MB, free: 8.746 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.002689/0.2854, allocations: 1.137 MB / 430.6 MB, free: 7.574 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.2854, allocations: 19.91 kB / 430.7 MB, free: 7.555 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001935/0.2856, allocations: 92.36 kB / 430.8 MB, free: 7.465 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001135/0.2868, allocations: 0.6954 MB / 431.5 MB, free: 6.73 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/0.2868, allocations: 4.375 kB / 431.5 MB, free: 6.727 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.91e-05/0.2868, allocations: 4.375 kB / 431.5 MB, free: 6.723 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002842/0.2871, allocations: 113.9 kB / 431.6 MB, free: 6.605 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-06/0.2871, allocations: 0 / 431.6 MB, free: 6.605 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.479e-05/0.2871, allocations: 0 / 431.6 MB, free: 6.605 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.2871, allocations: 4 kB / 431.6 MB, free: 6.602 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003595/0.2875, allocations: 143.9 kB / 431.7 MB, free: 6.461 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001089/0.2886, allocations: 0.7081 MB / 432.4 MB, free: 5.723 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002091/0.2888, allocations: 86.39 kB / 432.5 MB, free: 5.629 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001848/0.289, allocations: 72.91 kB / 432.6 MB, free: 5.555 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.601e-05/0.289, allocations: 0 / 432.6 MB, free: 5.555 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.409e-05/0.289, allocations: 38.55 kB / 432.6 MB, free: 5.508 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.289, allocations: 0 / 432.6 MB, free: 5.508 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008171/0.2898, allocations: 332.9 kB / 432.9 MB, free: 5.176 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.18e-05/0.2899, allocations: 55.41 kB / 433 MB, free: 5.109 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001793/0.2917, allocations: 1.401 MB / 434.4 MB, free: 3.688 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.763e-05/0.2917, allocations: 29.7 kB / 434.4 MB, free: 3.652 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003701/0.2921, allocations: 384.4 kB / 434.8 MB, free: 3.273 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.075e-05/0.2921, allocations: 15.84 kB / 434.8 MB, free: 3.258 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.367e-05/0.2922, allocations: 21.7 kB / 434.8 MB, free: 3.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.2923, allocations: 310 kB / 435.1 MB, free: 2.922 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001805/0.2925, allocations: 63.95 kB / 435.2 MB, free: 2.859 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002015/0.2927, allocations: 94.69 kB / 435.3 MB, free: 2.758 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000367/0.2931, allocations: 162.4 kB / 435.5 MB, free: 2.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.2931, allocations: 4 kB / 435.5 MB, free: 2.586 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006219/0.2937, allocations: 273 kB / 435.7 MB, free: 2.312 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.2937, allocations: 7.984 kB / 435.7 MB, free: 2.305 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.2937, allocations: 0 / 435.7 MB, free: 2.305 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.2937, allocations: 0 / 435.7 MB, free: 2.305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001852/0.2939, allocations: 15.98 kB / 435.7 MB, free: 2.289 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.2939, allocations: 0 / 435.7 MB, free: 2.289 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001969/0.2941, allocations: 11.98 kB / 435.8 MB, free: 2.277 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.398e-05/0.2941, allocations: 0 / 435.8 MB, free: 2.277 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.0003803/0.2945, allocations: 341.6 kB / 436.1 MB, free: 1.934 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001871/0.2947, allocations: 99.41 kB / 436.2 MB, free: 1.836 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006352/0.2953, allocations: 273.4 kB / 436.5 MB, free: 1.559 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.2953, allocations: 0 / 436.5 MB, free: 1.559 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.2953, allocations: 4 kB / 436.5 MB, free: 1.555 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.2953, allocations: 0 / 436.5 MB, free: 1.555 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005209/0.2959, allocations: 418 kB / 436.9 MB, free: 1.117 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.2959, allocations: 3.938 kB / 436.9 MB, free: 1.113 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.397e-05/0.296, allocations: 11.98 kB / 436.9 MB, free: 1.102 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.296, allocations: 0 / 436.9 MB, free: 1.102 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.296, allocations: 0 / 436.9 MB, free: 1.102 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.706e-06/0.296, allocations: 7.922 kB / 436.9 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.296, allocations: 0 / 436.9 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005479/0.2965, allocations: 323.3 kB / 437.2 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004142/0.2969, allocations: 159.5 kB / 437.4 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.825e-05/0.297, allocations: 0 / 437.4 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001952/0.2972, allocations: 4 kB / 437.4 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.641e-05/0.2972, allocations: 15.97 kB / 437.4 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.075e-05/0.2973, allocations: 4 kB / 437.4 MB, free: 0.582 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001367/0.2986, allocations: 1.013 MB / 438.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2986, allocations: 0 / 438.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003731/0.299, allocations: 63.94 kB / 438.5 MB, free: 15.5 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.0001981/0.2992, allocations: 115.2 kB / 438.6 MB, free: 15.37 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004011/0.2996, allocations: 127.8 kB / 438.7 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2996, allocations: 0 / 438.7 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001696/0.2998, allocations: 55.95 kB / 438.8 MB, free: 15.19 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005936/0.3004, allocations: 100.3 kB / 438.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002137/0.3025, allocations: 1.44 MB / 440.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005014/0.303, allocations: 403.9 kB / 440.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001318/0.3031, allocations: 43.42 kB / 440.7 MB, free: 13.16 MB / 350.1 MB Notification: Performance of SimCode: time 1.143e-06/0.3031, allocations: 0 / 440.7 MB, free: 13.16 MB / 350.1 MB Notification: Performance of Templates: time 0.01632/0.3194, allocations: 9.45 MB / 450.2 MB, free: 3.723 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins1/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: 7.848311812151223]