Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001558/0.001558, allocations: 104 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001744/0.001745, allocations: 209.7 kB / 18.14 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.4 MB / 246.3 MB, free: 10.86 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 60.06 kB / 306.2 MB, free: 1.086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.106, allocations: 50.54 MB / 356.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004692/0.1107, allocations: 3.024 MB / 359.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001609/0.1123, allocations: 0.7363 MB / 360.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003336/0.1127, allocations: 7.938 kB / 360.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002629/0.113, allocations: 43.69 kB / 360.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000353/0.1134, allocations: 95.23 kB / 360.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000368/0.1137, allocations: 91.92 kB / 360.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005116/0.1143, allocations: 406.3 kB / 361.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003394/0.1146, allocations: 181.3 kB / 361.4 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002421/0.1149, allocations: 147.4 kB / 361.5 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003393/0.1152, allocations: 167.2 kB / 361.7 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.232e-05/0.1153, allocations: 24 kB / 361.7 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000165/0.1155, allocations: 43.98 kB / 361.7 MB, free: 9.566 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001597/0.1156, allocations: 99.64 kB / 361.8 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002091/0.1158, allocations: 191 kB / 362 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004772/0.1163, allocations: 474.6 kB / 362.5 MB, free: 8.816 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1163, allocations: 0 / 362.5 MB, free: 8.816 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1164, allocations: 0 / 362.5 MB, free: 8.816 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.518e-05/0.1164, allocations: 0 / 362.5 MB, free: 8.816 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.001868/0.1182, allocations: 0.7874 MB / 363.3 MB, free: 7.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.1183, allocations: 11.97 kB / 363.3 MB, free: 7.969 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001293/0.1184, allocations: 44.47 kB / 363.3 MB, free: 7.926 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005202/0.119, allocations: 342.5 kB / 363.7 MB, free: 7.551 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.267e-05/0.119, allocations: 25.03 kB / 363.7 MB, free: 7.527 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.752e-05/0.1191, allocations: 32.38 kB / 363.7 MB, free: 7.496 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006286/0.1197, allocations: 346.2 kB / 364 MB, free: 7.148 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.765e-05/0.1197, allocations: 4 kB / 364 MB, free: 7.145 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.005e-05/0.1198, allocations: 16 kB / 364.1 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.1198, allocations: 8 kB / 364.1 MB, free: 7.121 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004511/0.1203, allocations: 238.5 kB / 364.3 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002029/0.1223, allocations: 1.307 MB / 365.6 MB, free: 5.496 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003804/0.1227, allocations: 174.5 kB / 365.8 MB, free: 5.316 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002679/0.123, allocations: 136.7 kB / 365.9 MB, free: 5.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.963e-05/0.123, allocations: 4 kB / 365.9 MB, free: 5.176 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.772e-05/0.1231, allocations: 38.55 kB / 366 MB, free: 5.129 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.472e-06/0.1231, allocations: 0 / 366 MB, free: 5.129 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005393/0.1236, allocations: 228.1 kB / 366.2 MB, free: 4.902 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.846e-05/0.1237, allocations: 55.41 kB / 366.2 MB, free: 4.836 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003845/0.1241, allocations: 315 kB / 366.5 MB, free: 4.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.725e-05/0.1241, allocations: 25.7 kB / 366.6 MB, free: 4.488 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001391/0.1242, allocations: 216 kB / 366.8 MB, free: 4.273 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.083e-05/0.1243, allocations: 59.19 kB / 366.8 MB, free: 4.215 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.324e-05/0.1244, allocations: 45.56 kB / 366.9 MB, free: 4.164 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.1245, allocations: 338.8 kB / 367.2 MB, free: 3.824 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001433/0.1247, allocations: 71.95 kB / 367.3 MB, free: 3.754 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001948/0.1249, allocations: 136.8 kB / 367.4 MB, free: 3.594 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002525/0.1251, allocations: 162.7 kB / 367.6 MB, free: 3.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1251, allocations: 0 / 367.6 MB, free: 3.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004303/0.1256, allocations: 245 kB / 367.8 MB, free: 3.164 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.1256, allocations: 8 kB / 367.8 MB, free: 3.156 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.1256, allocations: 0 / 367.8 MB, free: 3.156 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.1257, allocations: 12.19 kB / 367.8 MB, free: 3.145 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001909/0.1258, allocations: 43.92 kB / 367.9 MB, free: 3.102 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.157e-05/0.1259, allocations: 7.984 kB / 367.9 MB, free: 3.094 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004072/0.1263, allocations: 59.69 kB / 367.9 MB, free: 3.035 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.887e-05/0.1263, allocations: 16 kB / 368 MB, free: 3.02 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.00018/0.1265, allocations: 158.3 kB / 368.1 MB, free: 2.855 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.383e-05/0.1266, allocations: 31.66 kB / 368.1 MB, free: 2.824 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000411/0.127, allocations: 203.8 kB / 368.3 MB, free: 2.621 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.127, allocations: 0 / 368.3 MB, free: 2.621 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.127, allocations: 0 / 368.3 MB, free: 2.621 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.127, allocations: 0 / 368.3 MB, free: 2.621 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000802/0.1278, allocations: 0.6316 MB / 369 MB, free: 1.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.1278, allocations: 4 kB / 369 MB, free: 1.926 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001595/0.128, allocations: 35.95 kB / 369 MB, free: 1.891 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.128, allocations: 0 / 369 MB, free: 1.891 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.979e-05/0.1281, allocations: 8 kB / 369 MB, free: 1.883 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.1281, allocations: 0 / 369 MB, free: 1.883 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.1281, allocations: 0 / 369 MB, free: 1.883 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004733/0.1285, allocations: 382.5 kB / 369.4 MB, free: 1.492 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.444e-05/0.1286, allocations: 104.8 kB / 369.5 MB, free: 1.371 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.663e-05/0.1287, allocations: 8.062 kB / 369.5 MB, free: 1.363 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004068/0.1291, allocations: 55.92 kB / 369.6 MB, free: 1.309 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001739/0.1293, allocations: 71.86 kB / 369.6 MB, free: 1.238 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.1293, allocations: 8 kB / 369.6 MB, free: 1.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002559/0.1296, allocations: 233.9 kB / 369.9 MB, free: 1 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.1296, allocations: 4 kB / 369.9 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003772/0.13, allocations: 91.67 kB / 370 MB, free: 0.9062 MB / 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.000158/0.1301, allocations: 107.2 kB / 370.1 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000328/0.1305, allocations: 171.8 kB / 370.2 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.1305, allocations: 4 kB / 370.2 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001819/0.1307, allocations: 108.3 kB / 370.3 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004388/0.1311, allocations: 55.58 kB / 370.4 MB, free: 472 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1689/0.3001, allocations: 0.847 MB / 371.2 MB, free: 20.15 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003457/0.3005, allocations: 0.774 MB / 372 MB, free: 19.46 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002687/0.3007, allocations: 34.16 kB / 372 MB, free: 19.46 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/0.3008, allocations: 22.03 kB / 372.1 MB, free: 19.45 MB / 302.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3009, allocations: 0.625 kB / 372.1 MB, free: 19.45 MB / 302.1 MB Notification: Performance of Templates: time 0.009495/0.3104, allocations: 3.726 MB / 375.8 MB, free: 19.33 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches