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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=144000,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=144000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009214/0.0009218, allocations: 88.53 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009214/0.0009217, allocations: 183 kB / 17.21 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.535/1.535, allocations: 223.3 MB / 241.2 MB, free: 5.293 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000308/0.0003081, allocations: 6.031 kB / 300.8 MB, free: 6 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1243, allocations: 50.43 MB / 351.2 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.003922/0.1283, allocations: 2.516 MB / 353.8 MB, free: 9.105 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001884/0.1302, allocations: 0.6819 MB / 354.4 MB, free: 8.418 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003791/0.1306, allocations: 8 kB / 354.4 MB, free: 8.41 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002624/0.1309, allocations: 39.62 kB / 354.5 MB, free: 8.371 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004166/0.1313, allocations: 103.2 kB / 354.6 MB, free: 8.27 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004284/0.1318, allocations: 67.94 kB / 354.7 MB, free: 8.203 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006901/0.1325, allocations: 386.3 kB / 355 MB, free: 7.824 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004034/0.1329, allocations: 145.1 kB / 355.2 MB, free: 7.672 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002916/0.1332, allocations: 123.5 kB / 355.3 MB, free: 7.551 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000369/0.1336, allocations: 151.3 kB / 355.4 MB, free: 7.402 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.619e-05/0.1337, allocations: 16 kB / 355.5 MB, free: 7.387 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001485/0.1338, allocations: 31.98 kB / 355.5 MB, free: 7.355 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001363/0.134, allocations: 79.66 kB / 355.6 MB, free: 7.277 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001078/0.1341, allocations: 89.52 kB / 355.7 MB, free: 7.184 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004461/0.1345, allocations: 378.9 kB / 356 MB, free: 6.812 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.1345, allocations: 0 / 356 MB, free: 6.812 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.1345, allocations: 0 / 356 MB, free: 6.812 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.684e-05/0.1346, allocations: 4 kB / 356 MB, free: 6.809 MB / 286.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.001628/0.1362, allocations: 0.7679 MB / 356.8 MB, free: 5.992 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.1363, allocations: 12.02 kB / 356.8 MB, free: 5.98 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/0.1364, allocations: 39.53 kB / 356.8 MB, free: 5.941 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004451/0.1368, allocations: 325.5 kB / 357.2 MB, free: 5.586 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.339e-05/0.1369, allocations: 28.59 kB / 357.2 MB, free: 5.559 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.47e-05/0.1369, allocations: 31.98 kB / 357.2 MB, free: 5.527 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006156/0.1375, allocations: 349.8 kB / 357.6 MB, free: 5.176 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.1376, allocations: 7.938 kB / 357.6 MB, free: 5.168 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.882e-05/0.1376, allocations: 12 kB / 357.6 MB, free: 5.156 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/0.1376, allocations: 8 kB / 357.6 MB, free: 5.148 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004121/0.1381, allocations: 238.5 kB / 357.8 MB, free: 4.91 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001823/0.1399, allocations: 1.323 MB / 359.1 MB, free: 3.5 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003673/0.1403, allocations: 178.5 kB / 359.3 MB, free: 3.316 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002383/0.1405, allocations: 124.8 kB / 359.4 MB, free: 3.191 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.07e-05/0.1406, allocations: 4 kB / 359.4 MB, free: 3.188 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/0.1406, allocations: 30.84 kB / 359.5 MB, free: 3.148 MB / 286.1 MB Notification: Performance of pre-optimization done (n=16): time 1.553e-06/0.1406, allocations: 0 / 359.5 MB, free: 3.148 MB / 286.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004667/0.1411, allocations: 231.5 kB / 359.7 MB, free: 2.918 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.181e-05/0.1411, allocations: 67.36 kB / 359.8 MB, free: 2.84 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003338/0.1415, allocations: 315 kB / 360.1 MB, free: 2.531 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.213e-05/0.1415, allocations: 29.7 kB / 360.1 MB, free: 2.496 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000125/0.1416, allocations: 208 kB / 360.3 MB, free: 2.289 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.631e-05/0.1417, allocations: 59.25 kB / 360.4 MB, free: 2.23 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.511e-05/0.1417, allocations: 4 kB / 360.4 MB, free: 2.227 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.1418, allocations: 334.8 kB / 360.7 MB, free: 1.891 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001201/0.1419, allocations: 71.95 kB / 360.8 MB, free: 1.82 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000152/0.1421, allocations: 131.7 kB / 360.9 MB, free: 1.664 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001236/0.1422, allocations: 65.97 kB / 361 MB, free: 1.602 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.1422, allocations: 4 kB / 361 MB, free: 1.598 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000346/0.1426, allocations: 233.1 kB / 361.2 MB, free: 1.363 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.1426, allocations: 8 kB / 361.2 MB, free: 1.355 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.1426, allocations: 0 / 361.2 MB, free: 1.355 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.1426, allocations: 4.25 kB / 361.2 MB, free: 1.352 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001693/0.1428, allocations: 51.92 kB / 361.3 MB, free: 1.301 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.567e-05/0.1429, allocations: 11.94 kB / 361.3 MB, free: 1.289 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003405/0.1432, allocations: 87.62 kB / 361.4 MB, free: 1.203 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.763e-05/0.1432, allocations: 12 kB / 361.4 MB, free: 1.191 MB / 286.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.on1,pulseSeries.on2,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001519/0.1434, allocations: 153.8 kB / 361.5 MB, free: 1.031 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.185e-05/0.1435, allocations: 23.72 kB / 361.5 MB, free: 1.008 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003862/0.1438, allocations: 195.8 kB / 361.7 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.1439, allocations: 7.938 kB / 361.7 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.1439, allocations: 4 kB / 361.7 MB, free: 0.793 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.211e-06/0.1439, allocations: 3.953 kB / 361.7 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007146/0.1446, allocations: 0.6317 MB / 362.4 MB, free: 100 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.1446, allocations: 0 / 362.4 MB, free: 100 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000146/0.1448, allocations: 31.92 kB / 362.4 MB, free: 68 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.1448, allocations: 0 / 362.4 MB, free: 68 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.777e-05/0.1448, allocations: 4 kB / 362.4 MB, free: 64 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.611e-06/0.1448, allocations: 7.953 kB / 362.4 MB, free: 56 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1448, allocations: 4.031 kB / 362.4 MB, free: 52 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004797/0.1453, allocations: 382.1 kB / 362.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.605e-05/0.1454, allocations: 108.8 kB / 362.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.392e-05/0.1454, allocations: 8 kB / 362.9 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003634/0.1458, allocations: 75.98 kB / 363 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001928/0.146, allocations: 83.81 kB / 363.1 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.635e-05/0.146, allocations: 8 kB / 363.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002466/0.1463, allocations: 233.9 kB / 363.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.1463, allocations: 0 / 363.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003593/0.1467, allocations: 79.75 kB / 363.4 MB, free: 15.06 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001533/0.1468, allocations: 103.2 kB / 363.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003236/0.1472, allocations: 186.3 kB / 363.7 MB, free: 14.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.1472, allocations: 4.062 kB / 363.7 MB, free: 14.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001737/0.1474, allocations: 103.9 kB / 363.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004198/0.1478, allocations: 52.86 kB / 363.8 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001446/0.1492, allocations: 0.8985 MB / 364.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004018/0.1497, allocations: 0.7716 MB / 365.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001532/0.1498, allocations: 38.28 kB / 365.5 MB, free: 12.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.73e-05/0.1499, allocations: 19.44 kB / 365.5 MB, free: 12.82 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1499, allocations: 0 / 365.5 MB, free: 12.82 MB / 302.1 MB Notification: Performance of Templates: time 0.00778/0.1577, allocations: 3.609 MB / 369.2 MB, free: 9.262 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile (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) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches