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.0009448/0.0009448, allocations: 72.08 kB / 21.69 MB, free: 2.863 MB / 18.57 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.0009089/0.0009089, allocations: 142 kB / 24.97 MB, free: 8.895 MB / 18.57 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 0.9542/0.9542, allocations: 173.4 MB / 201.5 MB, free: 9.312 MB / 186.7 MB " [Timeout remaining time 179] 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 2.344e-06/2.344e-06, allocations: 0 / 268.1 MB, free: 6.734 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.087e-05/4.321e-05, allocations: 6.25 kB / 268.1 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.003816/0.003859, allocations: 2.965 MB / 271 MB, free: 3.742 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001256/0.005116, allocations: 0.7088 MB / 271.7 MB, free: 3.027 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001852/0.005301, allocations: 11.94 kB / 271.7 MB, free: 3.016 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002165/0.005517, allocations: 63.36 kB / 271.8 MB, free: 2.953 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002675/0.005785, allocations: 111.1 kB / 271.9 MB, free: 2.844 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003631/0.006148, allocations: 111.7 kB / 272 MB, free: 2.734 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004459/0.006594, allocations: 430.1 kB / 272.4 MB, free: 2.312 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002556/0.00685, allocations: 138.4 kB / 272.6 MB, free: 2.18 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002658/0.007115, allocations: 243.5 kB / 272.8 MB, free: 1.941 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002479/0.007363, allocations: 151.6 kB / 273 MB, free: 1.793 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.329e-05/0.007417, allocations: 40 kB / 273 MB, free: 1.754 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001148/0.007531, allocations: 59.88 kB / 273.1 MB, free: 1.695 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001424/0.007674, allocations: 119.6 kB / 273.2 MB, free: 1.578 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001336/0.007807, allocations: 143.7 kB / 273.3 MB, free: 1.438 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004372/0.008245, allocations: 299 kB / 273.6 MB, free: 1.145 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.008248, allocations: 4 kB / 273.6 MB, free: 1.141 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.008249, allocations: 0 / 273.6 MB, free: 1.141 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.014e-06/0.008256, allocations: 0 / 273.6 MB, free: 1.141 MB / 250.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.001118/0.009375, allocations: 0.7882 MB / 274.4 MB, free: 320 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.009415, allocations: 8.031 kB / 274.4 MB, free: 312 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001189/0.009534, allocations: 68.7 kB / 274.5 MB, free: 244 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003951/0.009929, allocations: 283.3 kB / 274.8 MB, free: 15.93 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.326e-05/0.009953, allocations: 25.03 kB / 274.8 MB, free: 15.91 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.364e-05/0.01001, allocations: 36.31 kB / 274.8 MB, free: 15.88 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004404/0.01045, allocations: 319.1 kB / 275.1 MB, free: 15.53 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.01046, allocations: 192 / 275.1 MB, free: 15.53 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.061e-05/0.01049, allocations: 16.38 kB / 275.1 MB, free: 15.52 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.469e-05/0.0105, allocations: 11.94 kB / 275.2 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002396/0.01074, allocations: 107.8 kB / 275.3 MB, free: 15.4 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001443/0.01219, allocations: 1.221 MB / 276.5 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002977/0.01248, allocations: 119.1 kB / 276.6 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000176/0.01266, allocations: 75.64 kB / 276.7 MB, free: 13.9 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.307e-05/0.01269, allocations: 4 kB / 276.7 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/0.01272, allocations: 41.33 kB / 276.7 MB, free: 13.84 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 2.315e-06/0.01272, allocations: 0 / 276.7 MB, free: 13.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003465/0.01307, allocations: 153.2 kB / 276.9 MB, free: 13.69 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.181e-05/0.0131, allocations: 51.41 kB / 276.9 MB, free: 13.63 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000291/0.01339, allocations: 324.2 kB / 277.2 MB, free: 13.3 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.204e-05/0.01341, allocations: 33.7 kB / 277.3 MB, free: 13.26 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.01355, allocations: 259.1 kB / 277.5 MB, free: 13 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.472e-05/0.01359, allocations: 59.47 kB / 277.6 MB, free: 12.94 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.004e-05/0.01367, allocations: 51.36 kB / 277.6 MB, free: 12.88 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.01381, allocations: 0.5079 MB / 278.1 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.301e-05/0.01388, allocations: 23.98 kB / 278.2 MB, free: 12.34 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001197/0.014, allocations: 117.1 kB / 278.3 MB, free: 12.18 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001882/0.01419, allocations: 155.7 kB / 278.4 MB, free: 12 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.0142, allocations: 4 kB / 278.4 MB, free: 11.99 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002969/0.01449, allocations: 181.2 kB / 278.6 MB, free: 11.81 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.01451, allocations: 4 kB / 278.6 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.01451, allocations: 4.25 kB / 278.6 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.01453, allocations: 11.94 kB / 278.6 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001436/0.01468, allocations: 55.84 kB / 278.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.01468, allocations: 0 / 278.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001823/0.01487, allocations: 47.81 kB / 278.7 MB, free: 11.69 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.612e-05/0.01489, allocations: 12 kB / 278.7 MB, free: 11.68 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 (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.000115/0.01501, allocations: 172.5 kB / 278.9 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.699e-05/0.01506, allocations: 23.86 kB / 278.9 MB, free: 11.47 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002783/0.01534, allocations: 151.7 kB / 279.1 MB, free: 11.32 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.01535, allocations: 7.938 kB / 279.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.01535, allocations: 0 / 279.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.01535, allocations: 0 / 279.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005813/0.01594, allocations: 0.5049 MB / 279.6 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.01594, allocations: 0 / 279.6 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001345/0.01607, allocations: 35.91 kB / 279.6 MB, free: 10.72 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.01608, allocations: 0 / 279.6 MB, free: 10.72 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.622e-05/0.01609, allocations: 4 kB / 279.6 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.01609, allocations: 0 / 279.6 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.0161, allocations: 32 / 279.6 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003457/0.01644, allocations: 322.8 kB / 279.9 MB, free: 10.38 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.565e-05/0.01649, allocations: 35.67 kB / 280 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.644e-05/0.01652, allocations: 8 kB / 280 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000194/0.01672, allocations: 35.95 kB / 280 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001861/0.0169, allocations: 99.83 kB / 280.1 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.495e-05/0.01692, allocations: 7.984 kB / 280.1 MB, free: 10.2 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001781/0.0171, allocations: 225.1 kB / 280.3 MB, free: 9.973 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.0171, allocations: 4.031 kB / 280.3 MB, free: 9.969 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003509/0.01745, allocations: 87.78 kB / 280.4 MB, free: 9.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.0001542/0.0176, allocations: 111.2 kB / 280.5 MB, free: 9.766 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002358/0.01784, allocations: 106.3 kB / 280.6 MB, free: 9.66 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.01784, allocations: 0 / 280.6 MB, free: 9.66 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.138e-05/0.01793, allocations: 55.59 kB / 280.7 MB, free: 9.602 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003686/0.0183, allocations: 48.91 kB / 280.7 MB, free: 9.555 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001223/0.01952, allocations: 0.6148 MB / 281.4 MB, free: 8.906 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.777e-05/0.01959, allocations: 88.3 kB / 281.4 MB, free: 8.801 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001046/0.0197, allocations: 34.22 kB / 281.5 MB, free: 8.77 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.759e-05/0.01977, allocations: 24.5 kB / 281.5 MB, free: 8.746 MB / 266.7 MB Notification: Performance of SimCode: time 1.062e-06/0.01977, allocations: 4 kB / 281.5 MB, free: 8.742 MB / 266.7 MB Notification: Performance of Templates: time 0.007664/0.02744, allocations: 4.351 MB / 285.9 MB, free: 4.438 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.2830261499620974]