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.001343/0.001343, allocations: 108.9 kB / 17.28 MB, free: 6.059 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.001437/0.001437, allocations: 197.3 kB / 18.21 MB, free: 5.145 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.337/1.337, allocations: 222.9 MB / 241.9 MB, free: 15.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001032/0.001032, allocations: 48.42 kB / 300.8 MB, free: 6.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09148/0.09252, allocations: 49.45 MB / 350.2 MB, free: 4.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004933/0.0975, allocations: 3.003 MB / 353.2 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001734/0.09927, allocations: 0.7011 MB / 353.9 MB, free: 1.016 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004045/0.09971, allocations: 15.94 kB / 354 MB, free: 1 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003104/0.1, allocations: 43.62 kB / 354 MB, free: 0.957 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004094/0.1005, allocations: 87.36 kB / 354.1 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005142/0.101, allocations: 95.88 kB / 354.2 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005626/0.1016, allocations: 410.4 kB / 354.6 MB, free: 384 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003654/0.102, allocations: 205.8 kB / 354.8 MB, free: 176 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002432/0.1022, allocations: 159.4 kB / 354.9 MB, free: 16 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000328/0.1026, allocations: 191.1 kB / 355.1 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.029e-05/0.1026, allocations: 40 kB / 355.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001427/0.1028, allocations: 52 kB / 355.2 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001698/0.103, allocations: 115.6 kB / 355.3 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002298/0.1032, allocations: 203.1 kB / 355.5 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004822/0.1037, allocations: 395.3 kB / 355.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1037, allocations: 0 / 355.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1037, allocations: 0 / 355.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.389e-05/0.1037, allocations: 0 / 355.9 MB, free: 15.04 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.001876/0.1056, allocations: 0.7873 MB / 356.7 MB, free: 14.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.1057, allocations: 15.89 kB / 356.7 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000112/0.1058, allocations: 44.41 kB / 356.8 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004734/0.1063, allocations: 346.5 kB / 357.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.552e-05/0.1063, allocations: 25.03 kB / 357.1 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.325e-05/0.1064, allocations: 40.31 kB / 357.2 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006354/0.107, allocations: 346.2 kB / 357.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.1071, allocations: 0 / 357.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.7e-05/0.1071, allocations: 15.98 kB / 357.5 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.1071, allocations: 4 kB / 357.5 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004429/0.1076, allocations: 242.5 kB / 357.8 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002036/0.1096, allocations: 1.307 MB / 359.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004145/0.11, allocations: 178.6 kB / 359.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002625/0.1103, allocations: 128.8 kB / 359.4 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.85e-05/0.1104, allocations: 4 kB / 359.4 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.869e-05/0.1104, allocations: 38.5 kB / 359.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.583e-06/0.1104, allocations: 4 kB / 359.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004921/0.1109, allocations: 229.1 kB / 359.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.655e-05/0.111, allocations: 55.41 kB / 359.7 MB, free: 11.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003709/0.1113, allocations: 315 kB / 360 MB, free: 10.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.606e-05/0.1114, allocations: 29.7 kB / 360 MB, free: 10.7 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001451/0.1115, allocations: 208 kB / 360.2 MB, free: 10.49 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.211e-05/0.1116, allocations: 59.17 kB / 360.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.587e-05/0.1117, allocations: 49.62 kB / 360.3 MB, free: 10.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.1118, allocations: 338.8 kB / 360.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000135/0.112, allocations: 71.95 kB / 360.7 MB, free: 9.965 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001878/0.1122, allocations: 131.6 kB / 360.9 MB, free: 9.809 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002408/0.1124, allocations: 171.5 kB / 361 MB, free: 9.613 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.1124, allocations: 0 / 361 MB, free: 9.613 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004218/0.1129, allocations: 245 kB / 361.3 MB, free: 9.367 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.1129, allocations: 6.656 kB / 361.3 MB, free: 9.363 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.1129, allocations: 4 kB / 361.3 MB, free: 9.359 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.113, allocations: 4 kB / 361.3 MB, free: 9.355 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000191/0.1132, allocations: 43.92 kB / 361.3 MB, free: 9.312 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.1132, allocations: 7.984 kB / 361.3 MB, free: 9.305 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003913/0.1136, allocations: 67.97 kB / 361.4 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.248e-05/0.1136, allocations: 11.98 kB / 361.4 MB, free: 9.227 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.0001639/0.1138, allocations: 157.8 kB / 361.6 MB, free: 9.062 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.308e-05/0.1139, allocations: 31.56 kB / 361.6 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004144/0.1143, allocations: 195.8 kB / 361.8 MB, free: 8.836 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.1143, allocations: 8 kB / 361.8 MB, free: 8.828 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.1143, allocations: 3.938 kB / 361.8 MB, free: 8.824 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.758e-06/0.1143, allocations: 0 / 361.8 MB, free: 8.824 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008332/0.1151, allocations: 0.6356 MB / 362.4 MB, free: 8.129 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.1152, allocations: 0 / 362.4 MB, free: 8.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001659/0.1153, allocations: 35.92 kB / 362.5 MB, free: 8.094 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.407e-06/0.1153, allocations: 0 / 362.5 MB, free: 8.094 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.768e-05/0.1154, allocations: 0 / 362.5 MB, free: 8.094 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.1154, allocations: 8.031 kB / 362.5 MB, free: 8.086 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1154, allocations: 0 / 362.5 MB, free: 8.086 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005297/0.1159, allocations: 375.9 kB / 362.8 MB, free: 7.699 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001048/0.116, allocations: 108.8 kB / 362.9 MB, free: 7.574 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.722e-05/0.1161, allocations: 0 / 362.9 MB, free: 7.574 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000399/0.1165, allocations: 63.92 kB / 363 MB, free: 7.512 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002324/0.1167, allocations: 71.88 kB / 363.1 MB, free: 7.441 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.905e-05/0.1168, allocations: 8 kB / 363.1 MB, free: 7.434 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002709/0.117, allocations: 237.9 kB / 363.3 MB, free: 7.203 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1171, allocations: 4 kB / 363.3 MB, free: 7.199 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003897/0.1174, allocations: 83.69 kB / 363.4 MB, free: 7.117 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.0001647/0.1176, allocations: 111.2 kB / 363.5 MB, free: 6.996 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003844/0.118, allocations: 187.7 kB / 363.7 MB, free: 6.812 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.118, allocations: 7.875 kB / 363.7 MB, free: 6.805 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001772/0.1182, allocations: 110.8 kB / 363.8 MB, free: 6.699 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000453/0.1187, allocations: 59.77 kB / 363.9 MB, free: 6.641 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001558/0.1202, allocations: 0.8817 MB / 364.8 MB, free: 5.727 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003706/0.1206, allocations: 0.7753 MB / 365.5 MB, free: 4.926 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001077/0.1207, allocations: 31.44 kB / 365.6 MB, free: 4.895 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1207, allocations: 4 kB / 365.6 MB, free: 4.891 MB / 302.1 MB Notification: Performance of Templates: time 0.006719/0.1275, allocations: 4.306 MB / 369.9 MB, free: 0.6055 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/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