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.0009814/0.0009817, allocations: 90.7 kB / 16.31 MB, free: 5.672 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.0009937/0.0009937, allocations: 183 kB / 17.2 MB, free: 5.602 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.438/1.438, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003445/0.0003447, allocations: 5.25 kB / 300.7 MB, free: 6.461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1355, allocations: 50.42 MB / 351.1 MB, free: 11.87 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.00306/0.1386, allocations: 2.403 MB / 353.5 MB, free: 9.449 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0011/0.1397, allocations: 0.6977 MB / 354.2 MB, free: 8.746 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001763/0.1399, allocations: 12 kB / 354.3 MB, free: 8.734 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001443/0.1401, allocations: 43.67 kB / 354.3 MB, free: 8.691 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002232/0.1403, allocations: 99.7 kB / 354.4 MB, free: 8.594 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002886/0.1406, allocations: 79.8 kB / 354.5 MB, free: 8.516 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003476/0.1409, allocations: 267.4 kB / 354.7 MB, free: 8.254 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002682/0.1412, allocations: 149.1 kB / 354.9 MB, free: 8.098 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001139/0.1413, allocations: 119.6 kB / 355 MB, free: 7.98 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001976/0.1415, allocations: 139.3 kB / 355.1 MB, free: 7.844 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.782e-05/0.1416, allocations: 20 kB / 355.1 MB, free: 7.824 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.723e-05/0.1417, allocations: 27.98 kB / 355.2 MB, free: 7.797 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001181/0.1418, allocations: 83.7 kB / 355.3 MB, free: 7.715 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.374e-05/0.1419, allocations: 89.52 kB / 355.3 MB, free: 7.621 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000339/0.1423, allocations: 375 kB / 355.7 MB, free: 7.254 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.1423, allocations: 0 / 355.7 MB, free: 7.254 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.885e-06/0.1423, allocations: 0 / 355.7 MB, free: 7.254 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.1423, allocations: 3.938 kB / 355.7 MB, free: 7.25 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.001536/0.1438, allocations: 0.7756 MB / 356.5 MB, free: 6.426 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.1439, allocations: 8.031 kB / 356.5 MB, free: 6.418 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.507e-05/0.144, allocations: 39.53 kB / 356.5 MB, free: 6.379 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004339/0.1444, allocations: 329.5 kB / 356.9 MB, free: 6.02 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.441e-05/0.1445, allocations: 24.66 kB / 356.9 MB, free: 5.996 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.2e-05/0.1445, allocations: 32 kB / 356.9 MB, free: 5.965 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005524/0.1451, allocations: 349.8 kB / 357.3 MB, free: 5.613 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.1451, allocations: 0 / 357.3 MB, free: 5.613 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.528e-05/0.1451, allocations: 12 kB / 357.3 MB, free: 5.602 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.238e-06/0.1452, allocations: 4 kB / 357.3 MB, free: 5.598 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004026/0.1456, allocations: 242.4 kB / 357.5 MB, free: 5.355 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001787/0.1474, allocations: 1.315 MB / 358.8 MB, free: 3.953 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003509/0.1477, allocations: 176.9 kB / 359 MB, free: 3.773 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.216e-05/0.1478, allocations: 4 kB / 359 MB, free: 3.77 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.536e-05/0.1478, allocations: 34.56 kB / 359 MB, free: 3.727 MB / 286.1 MB Notification: Performance of pre-optimization done (n=16): time 1.343e-06/0.1478, allocations: 0 / 359 MB, free: 3.727 MB / 286.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004613/0.1483, allocations: 241.5 kB / 359.3 MB, free: 3.484 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.901e-05/0.1483, allocations: 59.36 kB / 359.3 MB, free: 3.414 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003267/0.1487, allocations: 311 kB / 359.6 MB, free: 3.109 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.646e-05/0.1487, allocations: 33.7 kB / 359.7 MB, free: 3.07 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.1488, allocations: 211.9 kB / 359.9 MB, free: 2.859 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.431e-05/0.1489, allocations: 47.27 kB / 359.9 MB, free: 2.812 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.535e-05/0.1489, allocations: 8 kB / 359.9 MB, free: 2.805 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.149, allocations: 334.8 kB / 360.3 MB, free: 2.469 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001255/0.1492, allocations: 79.95 kB / 360.3 MB, free: 2.391 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001491/0.1493, allocations: 122.8 kB / 360.5 MB, free: 2.246 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001102/0.1494, allocations: 71.92 kB / 360.5 MB, free: 2.176 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.1494, allocations: 0 / 360.5 MB, free: 2.176 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000352/0.1498, allocations: 235.9 kB / 360.8 MB, free: 1.941 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.1498, allocations: 6.344 kB / 360.8 MB, free: 1.938 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.1498, allocations: 4 kB / 360.8 MB, free: 1.934 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.777e-05/0.1499, allocations: 7.938 kB / 360.8 MB, free: 1.926 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001962/0.1501, allocations: 44.19 kB / 360.8 MB, free: 1.883 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.179e-05/0.1501, allocations: 15.83 kB / 360.8 MB, free: 1.867 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003941/0.1505, allocations: 99.61 kB / 360.9 MB, free: 1.77 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.934e-05/0.1505, allocations: 12 kB / 360.9 MB, free: 1.758 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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.0001473/0.1507, allocations: 145.8 kB / 361.1 MB, free: 1.605 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.349e-05/0.1507, allocations: 23.72 kB / 361.1 MB, free: 1.582 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000385/0.1511, allocations: 211.7 kB / 361.3 MB, free: 1.363 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.082e-06/0.1512, allocations: 7.938 kB / 361.3 MB, free: 1.355 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.1512, allocations: 0 / 361.3 MB, free: 1.355 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.1512, allocations: 11.94 kB / 361.3 MB, free: 1.344 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004045/0.1516, allocations: 361.3 kB / 361.7 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.1516, allocations: 3.984 kB / 361.7 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001658/0.1518, allocations: 31.98 kB / 361.7 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.1518, allocations: 7.938 kB / 361.7 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.538e-05/0.1518, allocations: 0 / 361.7 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.1518, allocations: 0 / 361.7 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.1518, allocations: 0 / 361.7 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005068/0.1523, allocations: 392.5 kB / 362.1 MB, free: 0.5 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.259e-05/0.1524, allocations: 108.8 kB / 362.2 MB, free: 384 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.46e-05/0.1525, allocations: 7.984 kB / 362.2 MB, free: 376 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004142/0.1529, allocations: 79.98 kB / 362.3 MB, free: 296 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000204/0.1531, allocations: 67.88 kB / 362.4 MB, free: 228 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.782e-05/0.1531, allocations: 7.984 kB / 362.4 MB, free: 220 kB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000248/0.1534, allocations: 230 kB / 362.6 MB, free: 15.99 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1534, allocations: 0 / 362.6 MB, free: 15.99 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003486/0.1537, allocations: 83.75 kB / 362.7 MB, free: 15.91 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.0001859/0.1539, allocations: 111.2 kB / 362.8 MB, free: 15.79 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003372/0.1543, allocations: 187.8 kB / 363 MB, free: 15.61 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.1543, allocations: 3.938 kB / 363 MB, free: 15.6 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001534/0.1544, allocations: 90.77 kB / 363.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003384/0.1548, allocations: 53.3 kB / 363.1 MB, free: 15.46 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00141/0.1562, allocations: 0.8937 MB / 364 MB, free: 14.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003408/0.1566, allocations: 0.7872 MB / 364.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001376/0.1567, allocations: 34.28 kB / 364.8 MB, free: 13.69 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.539e-05/0.1568, allocations: 23.44 kB / 364.9 MB, free: 13.67 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1568, allocations: 0 / 364.9 MB, free: 13.67 MB / 302.1 MB Notification: Performance of Templates: time 0.00771/0.1645, allocations: 3.608 MB / 368.5 MB, free: 10.11 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","../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches