Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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.001677/0.001677, allocations: 108.6 kB / 21.18 MB, free: 0.7812 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.001979/0.001979, allocations: 185.9 kB / 24.47 MB, free: 4.207 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.437/1.437, allocations: 225.6 MB / 253.3 MB, free: 13.02 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.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001683/0.001683, allocations: 47.94 kB / 371.7 MB, free: 9.363 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2611, allocations: 52.19 MB / 423.9 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.00485/0.266, allocations: 3.011 MB / 426.9 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001578/0.2675, allocations: 0.7167 MB / 427.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001848/0.2677, allocations: 12 kB / 427.6 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002311/0.268, allocations: 59.36 kB / 427.7 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002944/0.2683, allocations: 111.1 kB / 427.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003523/0.2686, allocations: 103.8 kB / 427.9 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005207/0.2691, allocations: 418.2 kB / 428.3 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003079/0.2694, allocations: 154.4 kB / 428.4 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001938/0.2696, allocations: 167.4 kB / 428.6 MB, free: 9.949 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002971/0.2699, allocations: 187.2 kB / 428.8 MB, free: 9.766 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.243e-05/0.27, allocations: 40 kB / 428.8 MB, free: 9.727 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001343/0.2701, allocations: 51.98 kB / 428.9 MB, free: 9.676 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001661/0.2703, allocations: 119.6 kB / 429 MB, free: 9.559 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002226/0.2705, allocations: 195.1 kB / 429.2 MB, free: 9.367 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00063/0.2711, allocations: 0.5032 MB / 429.7 MB, free: 8.867 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.2711, allocations: 0 / 429.7 MB, free: 8.867 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2711, allocations: 0 / 429.7 MB, free: 8.867 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.2712, allocations: 0 / 429.7 MB, free: 8.867 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.00165/0.2728, allocations: 0.7272 MB / 430.4 MB, free: 8.105 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.2728, allocations: 8.031 kB / 430.4 MB, free: 8.098 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001007/0.2729, allocations: 48.66 kB / 430.5 MB, free: 8.051 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005441/0.2735, allocations: 292.8 kB / 430.8 MB, free: 7.742 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.639e-05/0.2735, allocations: 21.03 kB / 430.8 MB, free: 7.723 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.262e-05/0.2736, allocations: 32.38 kB / 430.8 MB, free: 7.691 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005908/0.2742, allocations: 342.2 kB / 431.1 MB, free: 7.348 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.766e-05/0.2742, allocations: 7.922 kB / 431.1 MB, free: 7.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.216e-05/0.2742, allocations: 16 kB / 431.2 MB, free: 7.324 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.2742, allocations: 8 kB / 431.2 MB, free: 7.316 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004828/0.2747, allocations: 238.5 kB / 431.4 MB, free: 7.082 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001935/0.2766, allocations: 1.25 MB / 432.7 MB, free: 5.754 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003849/0.277, allocations: 166.5 kB / 432.8 MB, free: 5.582 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002657/0.2773, allocations: 120.7 kB / 432.9 MB, free: 5.461 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.183e-05/0.2773, allocations: 4 kB / 432.9 MB, free: 5.457 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.008e-05/0.2774, allocations: 34.56 kB / 433 MB, free: 5.414 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.433e-06/0.2774, allocations: 0 / 433 MB, free: 5.414 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004902/0.2778, allocations: 229.1 kB / 433.2 MB, free: 5.188 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.18e-05/0.2779, allocations: 55.34 kB / 433.2 MB, free: 5.121 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004061/0.2783, allocations: 328.4 kB / 433.6 MB, free: 4.793 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.683e-05/0.2783, allocations: 25.7 kB / 433.6 MB, free: 4.762 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001585/0.2785, allocations: 208.4 kB / 433.8 MB, free: 4.551 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.793e-05/0.2785, allocations: 67.47 kB / 433.9 MB, free: 4.484 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.725e-05/0.2786, allocations: 45.7 kB / 433.9 MB, free: 4.434 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.2788, allocations: 334.8 kB / 434.2 MB, free: 4.098 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001425/0.2789, allocations: 75.95 kB / 434.3 MB, free: 4.023 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001956/0.2791, allocations: 131.7 kB / 434.4 MB, free: 3.867 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002517/0.2794, allocations: 167.6 kB / 434.6 MB, free: 3.676 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.2794, allocations: 3.938 kB / 434.6 MB, free: 3.672 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004174/0.2798, allocations: 252.2 kB / 434.8 MB, free: 3.422 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.2798, allocations: 8 kB / 434.9 MB, free: 3.414 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.2798, allocations: 0 / 434.9 MB, free: 3.414 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.2799, allocations: 4 kB / 434.9 MB, free: 3.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001923/0.28, allocations: 48.17 kB / 434.9 MB, free: 3.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.822e-06/0.28, allocations: 0 / 434.9 MB, free: 3.363 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003821/0.2804, allocations: 67.77 kB / 435 MB, free: 3.297 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.106e-05/0.2805, allocations: 12 kB / 435 MB, free: 3.285 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on2,pulseSeries.on1,energy.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001847/0.2806, allocations: 153.8 kB / 435.1 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.243e-05/0.2807, allocations: 35.78 kB / 435.2 MB, free: 3.09 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004302/0.2811, allocations: 203.6 kB / 435.4 MB, free: 2.887 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.2811, allocations: 4 kB / 435.4 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.2811, allocations: 0 / 435.4 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.2812, allocations: 3.938 kB / 435.4 MB, free: 2.879 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008876/0.282, allocations: 0.6037 MB / 436 MB, free: 2.219 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.282, allocations: 0 / 436 MB, free: 2.219 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001795/0.2822, allocations: 27.98 kB / 436 MB, free: 2.191 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.2822, allocations: 32 / 436 MB, free: 2.191 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.517e-05/0.2822, allocations: 4 kB / 436 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.2822, allocations: 4 kB / 436 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2822, allocations: 0 / 436 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005488/0.2828, allocations: 391.8 kB / 436.4 MB, free: 1.785 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.278e-05/0.2829, allocations: 31.81 kB / 436.4 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.774e-05/0.2829, allocations: 4 kB / 436.4 MB, free: 1.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004119/0.2833, allocations: 55.98 kB / 436.5 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001808/0.2835, allocations: 79.86 kB / 436.6 MB, free: 1.617 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.702e-05/0.2835, allocations: 4 kB / 436.6 MB, free: 1.613 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002747/0.2838, allocations: 235 kB / 436.8 MB, free: 1.383 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2838, allocations: 0 / 436.8 MB, free: 1.383 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003941/0.2842, allocations: 87.77 kB / 436.9 MB, free: 1.297 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (superCap.capacitor.v,energy.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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 Backend phase and start with SimCode phase: time 0.0001579/0.2843, allocations: 111.2 kB / 437 MB, free: 1.176 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003759/0.2847, allocations: 171.8 kB / 437.2 MB, free: 1.008 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.2847, allocations: 0 / 437.2 MB, free: 1.008 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001937/0.2849, allocations: 107.8 kB / 437.3 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004268/0.2853, allocations: 57.45 kB / 437.3 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001497/0.2868, allocations: 0.7496 MB / 438.1 MB, free: 56 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004637/0.2873, allocations: 0.7829 MB / 438.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001176/0.2874, allocations: 27.44 kB / 438.9 MB, free: 15.22 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2874, allocations: 0 / 438.9 MB, free: 15.22 MB / 350.1 MB Notification: Performance of Templates: time 0.007567/0.295, allocations: 4.38 MB / 443.3 MB, free: 10.87 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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.371889223810285]