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.001098/0.001098, allocations: 104.5 kB / 16.51 MB, free: 6.707 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.001153/0.001153, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.355/1.355, allocations: 222.9 MB / 241.1 MB, free: 15.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009692/0.0009692, allocations: 48.3 kB / 299.9 MB, free: 6.301 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09929/0.1003, allocations: 49.44 MB / 349.4 MB, free: 4.848 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004072/0.1044, allocations: 2.999 MB / 352.4 MB, free: 1.824 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00134/0.1058, allocations: 0.7167 MB / 353.1 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001604/0.1059, allocations: 4 kB / 353.1 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002178/0.1062, allocations: 51.62 kB / 353.2 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002592/0.1064, allocations: 95.3 kB / 353.3 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002861/0.1067, allocations: 87.92 kB / 353.3 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003921/0.1071, allocations: 414.2 kB / 353.7 MB, free: 472 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002967/0.1075, allocations: 177.3 kB / 353.9 MB, free: 292 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001441/0.1076, allocations: 139.4 kB / 354.1 MB, free: 152 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002488/0.1079, allocations: 171.2 kB / 354.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.885e-05/0.1079, allocations: 28 kB / 354.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001146/0.108, allocations: 39.92 kB / 354.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001412/0.1082, allocations: 91.72 kB / 354.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001757/0.1084, allocations: 191 kB / 354.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004316/0.1088, allocations: 478.6 kB / 355 MB, free: 15.17 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1088, allocations: 0 / 355 MB, free: 15.17 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.1088, allocations: 4 kB / 355 MB, free: 15.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.061e-06/0.1088, allocations: 0 / 355 MB, free: 15.16 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.001625/0.1105, allocations: 0.7835 MB / 355.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.1105, allocations: 8.031 kB / 355.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001072/0.1106, allocations: 40.47 kB / 355.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004419/0.1111, allocations: 350.5 kB / 356.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.318e-05/0.1111, allocations: 21.03 kB / 356.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.387e-05/0.1112, allocations: 32.38 kB / 356.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006057/0.1118, allocations: 350.2 kB / 356.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.703e-05/0.1118, allocations: 3.938 kB / 356.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.475e-05/0.1119, allocations: 15.94 kB / 356.6 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.132e-05/0.1119, allocations: 8 kB / 356.6 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000422/0.1123, allocations: 238.5 kB / 356.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001818/0.1141, allocations: 1.307 MB / 358.2 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003754/0.1145, allocations: 182.5 kB / 358.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002531/0.1148, allocations: 136.7 kB / 358.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.578e-05/0.1148, allocations: 0 / 358.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.915e-05/0.1149, allocations: 46.5 kB / 358.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.523e-06/0.1149, allocations: 4 kB / 358.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004738/0.1154, allocations: 229.1 kB / 358.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.91e-05/0.1154, allocations: 55.34 kB / 358.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003451/0.1158, allocations: 323 kB / 359.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.945e-05/0.1158, allocations: 25.7 kB / 359.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001261/0.1159, allocations: 212 kB / 359.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.581e-05/0.116, allocations: 55.2 kB / 359.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.516e-05/0.1161, allocations: 49.61 kB / 359.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.1162, allocations: 338.8 kB / 359.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001404/0.1164, allocations: 67.97 kB / 359.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001713/0.1166, allocations: 131.7 kB / 360 MB, free: 9.938 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002423/0.1168, allocations: 170.1 kB / 360.1 MB, free: 9.746 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1168, allocations: 0 / 360.1 MB, free: 9.746 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003816/0.1172, allocations: 245 kB / 360.4 MB, free: 9.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.1172, allocations: 8 kB / 360.4 MB, free: 9.492 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.1172, allocations: 0 / 360.4 MB, free: 9.492 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.1173, allocations: 4 kB / 360.4 MB, free: 9.488 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001888/0.1175, allocations: 47.91 kB / 360.4 MB, free: 9.441 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.216e-06/0.1175, allocations: 0 / 360.4 MB, free: 9.441 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003688/0.1179, allocations: 71.95 kB / 360.5 MB, free: 9.371 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.296e-05/0.1179, allocations: 12 kB / 360.5 MB, free: 9.359 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.0001602/0.1181, allocations: 149.8 kB / 360.7 MB, free: 9.203 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.984e-05/0.1181, allocations: 31.56 kB / 360.7 MB, free: 9.172 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004025/0.1185, allocations: 199.7 kB / 360.9 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.1186, allocations: 4 kB / 360.9 MB, free: 8.965 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.1186, allocations: 7.938 kB / 360.9 MB, free: 8.957 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.1186, allocations: 0 / 360.9 MB, free: 8.957 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007709/0.1193, allocations: 0.6317 MB / 361.5 MB, free: 8.266 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.1194, allocations: 0 / 361.5 MB, free: 8.266 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001627/0.1195, allocations: 27.98 kB / 361.6 MB, free: 8.238 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.1195, allocations: 0 / 361.6 MB, free: 8.238 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.1196, allocations: 3.984 kB / 361.6 MB, free: 8.234 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.083e-06/0.1196, allocations: 4 kB / 361.6 MB, free: 8.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1196, allocations: 4.031 kB / 361.6 MB, free: 8.227 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004871/0.1201, allocations: 383 kB / 362 MB, free: 7.836 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.105e-05/0.1202, allocations: 104.8 kB / 362.1 MB, free: 7.715 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.873e-05/0.1202, allocations: 11.98 kB / 362.1 MB, free: 7.703 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004153/0.1206, allocations: 55.98 kB / 362.1 MB, free: 7.648 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002179/0.1209, allocations: 71.88 kB / 362.2 MB, free: 7.578 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.848e-05/0.1209, allocations: 8 kB / 362.2 MB, free: 7.57 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002349/0.1211, allocations: 241.8 kB / 362.4 MB, free: 7.336 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1211, allocations: 0 / 362.4 MB, free: 7.336 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003489/0.1215, allocations: 87.69 kB / 362.5 MB, free: 7.25 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.0001428/0.1216, allocations: 111.1 kB / 362.6 MB, free: 7.133 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003372/0.122, allocations: 190.7 kB / 362.8 MB, free: 6.949 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.122, allocations: 0 / 362.8 MB, free: 6.949 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001912/0.1222, allocations: 103.9 kB / 362.9 MB, free: 6.848 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000423/0.1226, allocations: 51.81 kB / 363 MB, free: 6.797 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001423/0.1241, allocations: 0.8505 MB / 363.8 MB, free: 5.914 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003277/0.1244, allocations: 0.7716 MB / 364.6 MB, free: 5.117 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001471/0.1246, allocations: 34.28 kB / 364.6 MB, free: 5.082 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.254e-05/0.1246, allocations: 27.44 kB / 364.7 MB, free: 5.055 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1247, allocations: 0 / 364.7 MB, free: 5.055 MB / 302.1 MB Notification: Performance of Templates: time 0.007496/0.1322, allocations: 3.738 MB / 368.4 MB, free: 1.359 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