Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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.000988/0.000988, allocations: 80.8 kB / 21.5 MB, free: 2.996 MB / 18.57 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.001946/0.001946, allocations: 170.5 kB / 24.91 MB, free: 9.211 MB / 18.57 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.027/1.027, allocations: 177.1 MB / 205.3 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] 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.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 0 / 273.5 MB, free: 1.266 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.17e-05/2.308e-05, allocations: 2.312 kB / 273.5 MB, free: 1.262 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004138/0.004161, allocations: 3.021 MB / 276.5 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001341/0.005502, allocations: 0.7631 MB / 277.2 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001704/0.005673, allocations: 7.938 kB / 277.3 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001567/0.00583, allocations: 63.38 kB / 277.3 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002437/0.006073, allocations: 115.1 kB / 277.4 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002624/0.006336, allocations: 99.81 kB / 277.5 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004273/0.006763, allocations: 430.1 kB / 277.9 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002395/0.007002, allocations: 146.2 kB / 278.1 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002602/0.007263, allocations: 243.5 kB / 278.3 MB, free: 12.37 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002545/0.007517, allocations: 143.6 kB / 278.5 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.447e-05/0.007572, allocations: 44 kB / 278.5 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000133/0.007705, allocations: 59.92 kB / 278.6 MB, free: 12.13 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001322/0.007837, allocations: 115.6 kB / 278.7 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001282/0.007965, allocations: 143.7 kB / 278.8 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004007/0.008366, allocations: 310.8 kB / 279.1 MB, free: 11.57 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.008369, allocations: 0 / 279.1 MB, free: 11.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.00837, allocations: 0 / 279.1 MB, free: 11.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.032e-06/0.008376, allocations: 0 / 279.1 MB, free: 11.57 MB / 266.7 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.001031/0.009407, allocations: 0.6596 MB / 279.8 MB, free: 10.89 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.00944, allocations: 8.031 kB / 279.8 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.204e-05/0.009532, allocations: 56.89 kB / 279.9 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003143/0.009846, allocations: 216.6 kB / 280.1 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.445e-05/0.00987, allocations: 25.03 kB / 280.1 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.766e-05/0.009918, allocations: 36.31 kB / 280.1 MB, free: 10.53 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003694/0.01029, allocations: 305.4 kB / 280.4 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.0103, allocations: 192 / 280.4 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.754e-05/0.01033, allocations: 16.38 kB / 280.4 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.01034, allocations: 7.938 kB / 280.4 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001677/0.0105, allocations: 79.31 kB / 280.5 MB, free: 10.1 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001233/0.01174, allocations: 0.9029 MB / 281.4 MB, free: 9.141 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002427/0.01198, allocations: 138.4 kB / 281.6 MB, free: 8.996 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001334/0.01211, allocations: 57.11 kB / 281.6 MB, free: 8.938 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.158e-05/0.01214, allocations: 15.88 kB / 281.6 MB, free: 8.922 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.542e-05/0.01217, allocations: 34.56 kB / 281.7 MB, free: 8.879 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.482e-06/0.01217, allocations: 0 / 281.7 MB, free: 8.879 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0002423/0.01241, allocations: 109.6 kB / 281.8 MB, free: 8.766 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.529e-05/0.01244, allocations: 55.34 kB / 281.8 MB, free: 8.699 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002077/0.01265, allocations: 252.9 kB / 282.1 MB, free: 8.441 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.744e-05/0.01266, allocations: 25.7 kB / 282.1 MB, free: 8.41 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.687e-05/0.01276, allocations: 192.8 kB / 282.3 MB, free: 8.215 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.205e-05/0.0128, allocations: 63.5 kB / 282.3 MB, free: 8.152 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.13e-05/0.01287, allocations: 41.66 kB / 282.4 MB, free: 8.105 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.957e-05/0.01297, allocations: 342.8 kB / 282.7 MB, free: 7.762 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.316e-05/0.01303, allocations: 18.81 kB / 282.7 MB, free: 7.742 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001341/0.01316, allocations: 86.05 kB / 282.8 MB, free: 7.633 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001349/0.0133, allocations: 129.2 kB / 283 MB, free: 7.48 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.0133, allocations: 0 / 283 MB, free: 7.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002136/0.01351, allocations: 136.4 kB / 283.1 MB, free: 7.34 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.01353, allocations: 11.98 kB / 283.1 MB, free: 7.328 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.01354, allocations: 0 / 283.1 MB, free: 7.328 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.01355, allocations: 4 kB / 283.1 MB, free: 7.324 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002222/0.01377, allocations: 55.84 kB / 283.2 MB, free: 7.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.571e-06/0.01378, allocations: 4 kB / 283.2 MB, free: 7.266 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001869/0.01397, allocations: 39.86 kB / 283.2 MB, free: 7.227 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.248e-05/0.01399, allocations: 12 kB / 283.2 MB, free: 7.215 MB / 266.7 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 (energy.local_reset,pulseSeries.on2,pulseSeries.on1) * 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.000102/0.01409, allocations: 128.6 kB / 283.3 MB, free: 7.078 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.902e-05/0.01415, allocations: 23.97 kB / 283.4 MB, free: 7.055 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002241/0.01437, allocations: 122.8 kB / 283.5 MB, free: 6.934 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.01438, allocations: 4 kB / 283.5 MB, free: 6.93 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.01438, allocations: 3.938 kB / 283.5 MB, free: 6.926 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.01438, allocations: 3.984 kB / 283.5 MB, free: 6.922 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004779/0.01486, allocations: 379.5 kB / 283.9 MB, free: 6.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.01487, allocations: 0 / 283.9 MB, free: 6.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001668/0.01503, allocations: 43.94 kB / 283.9 MB, free: 6.477 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.01504, allocations: 0 / 283.9 MB, free: 6.477 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.802e-05/0.01505, allocations: 11.94 kB / 283.9 MB, free: 6.465 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.01506, allocations: 0 / 283.9 MB, free: 6.465 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.01506, allocations: 0 / 283.9 MB, free: 6.465 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002826/0.01534, allocations: 278.2 kB / 284.2 MB, free: 6.176 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.4e-05/0.01538, allocations: 23.81 kB / 284.2 MB, free: 6.152 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.471e-05/0.01542, allocations: 7.938 kB / 284.2 MB, free: 6.145 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002113/0.01563, allocations: 39.98 kB / 284.3 MB, free: 6.105 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.01574, allocations: 43.94 kB / 284.3 MB, free: 6.062 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.699e-05/0.01575, allocations: 7.984 kB / 284.3 MB, free: 6.055 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000109/0.01586, allocations: 86.78 kB / 284.4 MB, free: 5.965 MB / 266.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.01586, allocations: 0 / 284.4 MB, free: 5.965 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003524/0.01621, allocations: 83.78 kB / 284.5 MB, free: 5.883 MB / 266.7 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.0001553/0.01637, allocations: 96.33 kB / 284.6 MB, free: 5.777 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000187/0.01656, allocations: 88.52 kB / 284.7 MB, free: 5.691 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.273e-06/0.01656, allocations: 4 kB / 284.7 MB, free: 5.688 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.142e-05/0.01665, allocations: 43.59 kB / 284.7 MB, free: 5.641 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000318/0.01696, allocations: 40.48 kB / 284.7 MB, free: 5.602 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001187/0.01815, allocations: 0.6039 MB / 285.3 MB, free: 4.969 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.673e-05/0.01822, allocations: 88.3 kB / 285.4 MB, free: 4.863 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001244/0.01834, allocations: 26.28 kB / 285.5 MB, free: 4.84 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001808/0.01852, allocations: 99.36 kB / 285.6 MB, free: 4.742 MB / 266.7 MB Notification: Performance of SimCode: time 1.082e-06/0.01852, allocations: 0 / 285.6 MB, free: 4.742 MB / 266.7 MB Notification: Performance of Templates: time 0.007819/0.02634, allocations: 4.011 MB / 289.6 MB, free: 0.7969 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0270015080459416]