Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=144000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=144000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001264/0.001264, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001318/0.001318, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.45/1.45, allocations: 227.7 MB / 247.7 MB, free: 10.36 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001998/0.001998, allocations: 69.55 kB / 307.9 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1119, allocations: 50.54 MB / 358.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.005695/0.1176, allocations: 2.963 MB / 361.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001579/0.1193, allocations: 0.7517 MB / 362.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001838/0.1195, allocations: 8 kB / 362.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003211/0.1198, allocations: 59.38 kB / 362.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002857/0.1201, allocations: 107.1 kB / 362.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003888/0.1205, allocations: 107.8 kB / 362.4 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004669/0.121, allocations: 410.3 kB / 362.8 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003534/0.1214, allocations: 213.7 kB / 363 MB, free: 9.312 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000185/0.1216, allocations: 159.4 kB / 363.2 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002755/0.1218, allocations: 183.2 kB / 363.4 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.85e-05/0.1219, allocations: 43.98 kB / 363.4 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001346/0.1221, allocations: 59.94 kB / 363.5 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001719/0.1222, allocations: 103.7 kB / 363.6 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002192/0.1225, allocations: 207 kB / 363.8 MB, free: 8.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005683/0.123, allocations: 494.6 kB / 364.3 MB, free: 8.086 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.1231, allocations: 4 kB / 364.3 MB, free: 8.082 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1231, allocations: 0 / 364.3 MB, free: 8.082 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.1231, allocations: 0 / 364.3 MB, free: 8.082 MB / 302.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.001918/0.125, allocations: 0.7834 MB / 365 MB, free: 7.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.1251, allocations: 12.02 kB / 365.1 MB, free: 7.238 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002048/0.1253, allocations: 40.47 kB / 365.1 MB, free: 7.199 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006227/0.1259, allocations: 342.5 kB / 365.4 MB, free: 6.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.825e-05/0.1259, allocations: 25.03 kB / 365.5 MB, free: 6.797 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.77e-05/0.126, allocations: 32.36 kB / 365.5 MB, free: 6.766 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007144/0.1267, allocations: 350.2 kB / 365.8 MB, free: 6.414 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.1268, allocations: 0 / 365.8 MB, free: 6.414 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.075e-05/0.1268, allocations: 12 kB / 365.8 MB, free: 6.402 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/0.1268, allocations: 8 kB / 365.8 MB, free: 6.395 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004667/0.1273, allocations: 238.5 kB / 366.1 MB, free: 6.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00205/0.1294, allocations: 1.311 MB / 367.4 MB, free: 4.766 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004256/0.1298, allocations: 174.5 kB / 367.6 MB, free: 4.586 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000285/0.1301, allocations: 132.7 kB / 367.7 MB, free: 4.453 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.958e-05/0.1301, allocations: 4 kB / 367.7 MB, free: 4.449 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.058e-05/0.1302, allocations: 38.56 kB / 367.7 MB, free: 4.402 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.353e-06/0.1302, allocations: 0 / 367.7 MB, free: 4.402 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005317/0.1307, allocations: 232.7 kB / 368 MB, free: 4.172 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.026e-05/0.1308, allocations: 51.41 kB / 368 MB, free: 4.109 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005156/0.1313, allocations: 319 kB / 368.3 MB, free: 3.793 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.171e-05/0.1314, allocations: 29.7 kB / 368.4 MB, free: 3.758 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001862/0.1315, allocations: 211.9 kB / 368.6 MB, free: 3.547 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.529e-05/0.1316, allocations: 63.19 kB / 368.6 MB, free: 3.484 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.17e-05/0.1317, allocations: 49.61 kB / 368.7 MB, free: 3.43 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001875/0.1319, allocations: 330.8 kB / 369 MB, free: 3.098 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002018/0.1321, allocations: 75.95 kB / 369.1 MB, free: 3.023 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001916/0.1323, allocations: 127.7 kB / 369.2 MB, free: 2.871 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003062/0.1326, allocations: 173.3 kB / 369.4 MB, free: 2.676 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1326, allocations: 0 / 369.4 MB, free: 2.676 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004308/0.1331, allocations: 237 kB / 369.6 MB, free: 2.438 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.1331, allocations: 6.656 kB / 369.6 MB, free: 2.434 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.1331, allocations: 11.92 kB / 369.6 MB, free: 2.422 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.1331, allocations: 4 kB / 369.6 MB, free: 2.418 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001987/0.1334, allocations: 52.17 kB / 369.7 MB, free: 2.367 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/0.1334, allocations: 0 / 369.7 MB, free: 2.367 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004133/0.1338, allocations: 67.67 kB / 369.7 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.788e-05/0.1338, allocations: 8 kB / 369.7 MB, free: 2.293 MB / 302.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.0001819/0.134, allocations: 161.7 kB / 369.9 MB, free: 2.125 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.939e-05/0.1341, allocations: 27.66 kB / 369.9 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004179/0.1345, allocations: 195.8 kB / 370.1 MB, free: 1.898 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.06e-05/0.1345, allocations: 11.97 kB / 370.1 MB, free: 1.887 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.1345, allocations: 0 / 370.1 MB, free: 1.887 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.1346, allocations: 0 / 370.1 MB, free: 1.887 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001058/0.1356, allocations: 0.6316 MB / 370.8 MB, free: 1.195 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.1356, allocations: 0 / 370.8 MB, free: 1.195 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001796/0.1358, allocations: 27.98 kB / 370.8 MB, free: 1.168 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.1358, allocations: 4.031 kB / 370.8 MB, free: 1.164 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.027e-05/0.1359, allocations: 4 kB / 370.8 MB, free: 1.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.236e-06/0.1359, allocations: 8 kB / 370.8 MB, free: 1.152 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1359, allocations: 0 / 370.8 MB, free: 1.152 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005658/0.1365, allocations: 379.8 kB / 371.2 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001004/0.1366, allocations: 108.8 kB / 371.3 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.28e-05/0.1366, allocations: 0 / 371.3 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000429/0.1371, allocations: 59.98 kB / 371.3 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002467/0.1373, allocations: 71.88 kB / 371.4 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-05/0.1373, allocations: 8 kB / 371.4 MB, free: 0.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002939/0.1376, allocations: 241.9 kB / 371.7 MB, free: 268 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1376, allocations: 0 / 371.7 MB, free: 268 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003836/0.138, allocations: 87.69 kB / 371.7 MB, free: 180 kB / 302.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.0001699/0.1382, allocations: 107.2 kB / 371.8 MB, free: 64 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1454/0.2837, allocations: 182.9 kB / 372 MB, free: 20.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.2837, allocations: 3.688 kB / 372 MB, free: 20.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003165/0.284, allocations: 111.5 kB / 372.1 MB, free: 20.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005516/0.2846, allocations: 48.55 kB / 372.2 MB, free: 20.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00182/0.2864, allocations: 0.7495 MB / 372.9 MB, free: 20 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002474/0.2867, allocations: 0.7777 MB / 373.7 MB, free: 19.3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001137/0.2868, allocations: 29.53 kB / 373.7 MB, free: 19.29 MB / 302.1 MB Notification: Performance of SimCode: time 9.42e-07/0.2868, allocations: 0.875 kB / 373.7 MB, free: 19.29 MB / 302.1 MB Notification: Performance of Templates: time 0.008998/0.2958, allocations: 4.312 MB / 378 MB, free: 18.95 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches