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.001647/0.001647, allocations: 111 kB / 21.18 MB, free: 0.6758 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.001978/0.001978, allocations: 206.6 kB / 24.47 MB, free: 3.977 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.446/1.446, allocations: 230.6 MB / 258.2 MB, free: 7.801 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.001538/0.001538, allocations: 43.92 kB / 378.9 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2441/0.2456, allocations: 53.37 MB / 432.3 MB, free: 6.746 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003407/0.249, allocations: 1.858 MB / 434.2 MB, free: 4.883 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00187/0.2509, allocations: 1.143 MB / 435.3 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.307e-05/0.251, allocations: 7.938 kB / 435.3 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001077/0.252, allocations: 486.6 kB / 435.8 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002453/0.2523, allocations: 203.4 kB / 436 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004303/0.2527, allocations: 155.4 kB / 436.1 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003359/0.2531, allocations: 227 kB / 436.4 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.674e-05/0.2532, allocations: 13.81 kB / 436.4 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000249/0.2534, allocations: 127.5 kB / 436.5 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002905/0.2537, allocations: 231.4 kB / 436.7 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.724e-05/0.2537, allocations: 8 kB / 436.7 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001456/0.2539, allocations: 59.95 kB / 436.8 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002151/0.2541, allocations: 263.3 kB / 437.1 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001919/0.2543, allocations: 198.4 kB / 437.2 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008748/0.2551, allocations: 0.8008 MB / 438 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.2552, allocations: 0 / 438 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2552, allocations: 0 / 438 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.216e-05/0.2552, allocations: 0 / 438 MB, free: 0.9883 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.00279/0.258, allocations: 1.126 MB / 439.2 MB, free: 15.83 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.258, allocations: 8.031 kB / 439.2 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001988/0.2582, allocations: 96.31 kB / 439.3 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001131/0.2593, allocations: 0.6993 MB / 440 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.294e-05/0.2593, allocations: 8.375 kB / 440 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.53e-05/0.2594, allocations: 384 / 440 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000311/0.2597, allocations: 121.3 kB / 440.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.2597, allocations: 0 / 440.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.703e-05/0.2597, allocations: 0 / 440.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/0.2597, allocations: 0 / 440.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003808/0.2601, allocations: 147.8 kB / 440.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00113/0.2612, allocations: 0.6925 MB / 440.9 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002445/0.2615, allocations: 94.5 kB / 441 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001919/0.2616, allocations: 72.84 kB / 441.1 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.745e-05/0.2617, allocations: 7.984 kB / 441.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.282e-05/0.2617, allocations: 30.56 kB / 441.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.2617, allocations: 0 / 441.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008512/0.2625, allocations: 328.9 kB / 441.5 MB, free: 13.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.947e-05/0.2626, allocations: 51.41 kB / 441.5 MB, free: 13.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001788/0.2644, allocations: 1.409 MB / 442.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.699e-05/0.2644, allocations: 25.7 kB / 442.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004053/0.2648, allocations: 388.4 kB / 443.3 MB, free: 11.53 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.095e-05/0.2648, allocations: 15.84 kB / 443.3 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.82e-05/0.2649, allocations: 17.72 kB / 443.4 MB, free: 11.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.265, allocations: 313.9 kB / 443.7 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001889/0.2652, allocations: 67.95 kB / 443.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001984/0.2654, allocations: 82.52 kB / 443.8 MB, free: 11.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003667/0.2658, allocations: 158.4 kB / 444 MB, free: 10.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.299e-06/0.2658, allocations: 4 kB / 444 MB, free: 10.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006243/0.2664, allocations: 268.9 kB / 444.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.2665, allocations: 8 kB / 444.2 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.2665, allocations: 4.094 kB / 444.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.2665, allocations: 0 / 444.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002118/0.2667, allocations: 15.98 kB / 444.3 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.401e-06/0.2667, allocations: 0 / 444.3 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000203/0.2669, allocations: 15.88 kB / 444.3 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.921e-05/0.2669, allocations: 8 kB / 444.3 MB, free: 10.54 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.0003682/0.2673, allocations: 337.6 kB / 444.6 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000195/0.2675, allocations: 91.42 kB / 444.7 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006423/0.2681, allocations: 281.7 kB / 445 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.2681, allocations: 4 kB / 445 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.2681, allocations: 0 / 445 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.2681, allocations: 0 / 445 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005055/0.2686, allocations: 414 kB / 445.4 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.2686, allocations: 0 / 445.4 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.436e-05/0.2687, allocations: 15.92 kB / 445.4 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.2687, allocations: 0 / 445.4 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/0.2687, allocations: 4 kB / 445.4 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.2687, allocations: 3.938 kB / 445.4 MB, free: 9.359 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.2687, allocations: 0 / 445.4 MB, free: 9.359 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000536/0.2693, allocations: 323.3 kB / 445.7 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003932/0.2697, allocations: 147.4 kB / 445.9 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.132e-05/0.2698, allocations: 8 kB / 445.9 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002023/0.27, allocations: 7.984 kB / 445.9 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.043e-05/0.27, allocations: 4 kB / 445.9 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.105e-06/0.27, allocations: 3.938 kB / 445.9 MB, free: 8.859 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001342/0.2714, allocations: 1.017 MB / 446.9 MB, free: 7.832 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2714, allocations: 4 kB / 446.9 MB, free: 7.828 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000355/0.2717, allocations: 63.94 kB / 447 MB, free: 7.766 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.0002135/0.2719, allocations: 111.2 kB / 447.1 MB, free: 7.645 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004253/0.2723, allocations: 123.8 kB / 447.2 MB, free: 7.523 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2723, allocations: 0 / 447.2 MB, free: 7.523 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001776/0.2725, allocations: 55.95 kB / 447.3 MB, free: 7.469 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006144/0.2731, allocations: 109.2 kB / 447.4 MB, free: 7.363 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00192/0.2751, allocations: 1.38 MB / 448.7 MB, free: 5.957 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004557/0.2755, allocations: 404.1 kB / 449.1 MB, free: 5.539 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006622/0.2762, allocations: 470.3 kB / 449.6 MB, free: 5.074 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001153/0.2763, allocations: 35.44 kB / 449.6 MB, free: 5.039 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2763, allocations: 0 / 449.6 MB, free: 5.039 MB / 350.1 MB Notification: Performance of Templates: time 0.01616/0.2925, allocations: 8.607 MB / 458.2 MB, free: 12.51 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 -s gbode -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: 4.491069195995806]