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.001122/0.001122, allocations: 111.4 kB / 17.68 MB, free: 5.496 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.001378/0.001378, allocations: 192 kB / 18.62 MB, free: 4.562 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.365/1.365, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009259/0.0009261, allocations: 53.8 kB / 302 MB, free: 5.168 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1081, allocations: 49.44 MB / 351.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004299/0.1125, allocations: 2.961 MB / 354.5 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001321/0.1138, allocations: 0.7206 MB / 355.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001617/0.114, allocations: 4 kB / 355.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000209/0.1142, allocations: 67.31 kB / 355.2 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002392/0.1145, allocations: 103.1 kB / 355.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000335/0.1148, allocations: 111.8 kB / 355.5 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004521/0.1153, allocations: 414.3 kB / 355.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003504/0.1156, allocations: 201.8 kB / 356.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001733/0.1158, allocations: 167.4 kB / 356.2 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002609/0.1161, allocations: 179.2 kB / 356.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.689e-05/0.1162, allocations: 40 kB / 356.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001263/0.1163, allocations: 55.98 kB / 356.5 MB, free: 14.67 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001631/0.1165, allocations: 107.6 kB / 356.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001963/0.1167, allocations: 211 kB / 356.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005195/0.1172, allocations: 0.4905 MB / 357.3 MB, free: 13.87 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.124e-06/0.1172, allocations: 4 kB / 357.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.856e-06/0.1172, allocations: 3.938 kB / 357.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.1172, allocations: 0 / 357.3 MB, free: 13.86 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.001617/0.1189, allocations: 0.7796 MB / 358.1 MB, free: 13.03 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.1189, allocations: 15.83 kB / 358.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.046e-05/0.119, allocations: 40.47 kB / 358.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005479/0.1196, allocations: 350.5 kB / 358.5 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.352e-05/0.1196, allocations: 25.03 kB / 358.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.586e-05/0.1197, allocations: 28.38 kB / 358.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005479/0.1202, allocations: 346.2 kB / 358.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.1202, allocations: 3.938 kB / 358.9 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.263e-05/0.1203, allocations: 16 kB / 358.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/0.1203, allocations: 8 kB / 358.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004198/0.1207, allocations: 238.4 kB / 359.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001836/0.1226, allocations: 1.303 MB / 360.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003876/0.123, allocations: 174.6 kB / 360.6 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002685/0.1232, allocations: 132.7 kB / 360.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.086e-05/0.1233, allocations: 7.984 kB / 360.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.743e-05/0.1233, allocations: 34.56 kB / 360.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.582e-06/0.1233, allocations: 0 / 360.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004863/0.1238, allocations: 236.6 kB / 361 MB, free: 9.949 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.262e-05/0.1239, allocations: 51.41 kB / 361.1 MB, free: 9.887 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003715/0.1243, allocations: 315 kB / 361.4 MB, free: 9.566 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.466e-05/0.1243, allocations: 33.7 kB / 361.4 MB, free: 9.527 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001363/0.1244, allocations: 208 kB / 361.6 MB, free: 9.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.365e-05/0.1245, allocations: 51.2 kB / 361.6 MB, free: 9.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.275e-05/0.1246, allocations: 49.61 kB / 361.7 MB, free: 9.215 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.1247, allocations: 334.8 kB / 362 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001411/0.1249, allocations: 79.89 kB / 362.1 MB, free: 8.801 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001671/0.125, allocations: 131.7 kB / 362.2 MB, free: 8.645 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002204/0.1253, allocations: 163.6 kB / 362.4 MB, free: 8.457 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.31e-05/0.1253, allocations: 4 kB / 362.4 MB, free: 8.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003886/0.1257, allocations: 245 kB / 362.6 MB, free: 8.207 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.1257, allocations: 6.812 kB / 362.6 MB, free: 8.203 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.1257, allocations: 4 kB / 362.6 MB, free: 8.199 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/0.1257, allocations: 7.938 kB / 362.6 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001836/0.1259, allocations: 43.92 kB / 362.7 MB, free: 8.148 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.126, allocations: 4 kB / 362.7 MB, free: 8.145 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003578/0.1263, allocations: 71.95 kB / 362.8 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.691e-05/0.1263, allocations: 8 kB / 362.8 MB, free: 8.066 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.0001537/0.1265, allocations: 153.8 kB / 362.9 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.701e-05/0.1266, allocations: 35.56 kB / 363 MB, free: 7.871 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003868/0.127, allocations: 199.7 kB / 363.2 MB, free: 7.672 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.107e-06/0.127, allocations: 4 kB / 363.2 MB, free: 7.668 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.127, allocations: 0 / 363.2 MB, free: 7.668 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.127, allocations: 4 kB / 363.2 MB, free: 7.664 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007761/0.1278, allocations: 0.6241 MB / 363.8 MB, free: 6.977 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.1278, allocations: 4 kB / 363.8 MB, free: 6.973 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001562/0.128, allocations: 23.98 kB / 363.8 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.128, allocations: 7.938 kB / 363.8 MB, free: 6.941 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.998e-05/0.128, allocations: 8 kB / 363.8 MB, free: 6.934 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.128, allocations: 0 / 363.8 MB, free: 6.934 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.128, allocations: 4 kB / 363.8 MB, free: 6.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004929/0.1285, allocations: 384.4 kB / 364.2 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.789e-05/0.1286, allocations: 104.8 kB / 364.3 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.335e-05/0.1287, allocations: 4 kB / 364.3 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004077/0.1291, allocations: 55.98 kB / 364.4 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001676/0.1292, allocations: 75.88 kB / 364.4 MB, free: 6.281 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.82e-05/0.1293, allocations: 8 kB / 364.4 MB, free: 6.273 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002345/0.1295, allocations: 237.9 kB / 364.7 MB, free: 6.047 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1295, allocations: 0 / 364.7 MB, free: 6.047 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003641/0.1299, allocations: 83.69 kB / 364.8 MB, free: 5.965 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.0001773/0.1301, allocations: 115.2 kB / 364.9 MB, free: 5.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003556/0.1304, allocations: 182.6 kB / 365.1 MB, free: 5.664 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1305, allocations: 0 / 365.1 MB, free: 5.664 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001781/0.1306, allocations: 111.8 kB / 365.2 MB, free: 5.555 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000437/0.1311, allocations: 44.88 kB / 365.2 MB, free: 5.504 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001447/0.1325, allocations: 0.736 MB / 365.9 MB, free: 4.742 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000417/0.133, allocations: 0.7791 MB / 366.7 MB, free: 3.934 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.00014/0.1331, allocations: 38.22 kB / 366.8 MB, free: 3.898 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.438e-05/0.1332, allocations: 23.44 kB / 366.8 MB, free: 3.875 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1332, allocations: 0 / 366.8 MB, free: 3.875 MB / 302.1 MB Notification: Performance of Templates: time 0.1669/0.3001, allocations: 4.509 MB / 371.3 MB, free: 25.08 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/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