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.001411/0.001411, allocations: 105.6 kB / 17.59 MB, free: 5.441 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.001766/0.001766, allocations: 187.6 kB / 18.51 MB, free: 4.523 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.379/1.379, allocations: 222.9 MB / 242.2 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001042/0.001042, allocations: 43.5 kB / 301.3 MB, free: 5.91 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08911/0.09016, allocations: 49.45 MB / 350.7 MB, free: 4.453 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004664/0.09487, allocations: 2.954 MB / 353.7 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001505/0.09641, allocations: 0.7322 MB / 354.4 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000308/0.09674, allocations: 4 kB / 354.4 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002635/0.09702, allocations: 63.38 kB / 354.5 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003697/0.09743, allocations: 107.1 kB / 354.6 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003862/0.09783, allocations: 99.83 kB / 354.7 MB, free: 476 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005042/0.09835, allocations: 414.3 kB / 355.1 MB, free: 60 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003845/0.09874, allocations: 201.8 kB / 355.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002234/0.09898, allocations: 167.4 kB / 355.4 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003232/0.09931, allocations: 179.2 kB / 355.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.481e-05/0.09939, allocations: 44 kB / 355.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001496/0.09955, allocations: 55.98 kB / 355.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001597/0.09972, allocations: 107.6 kB / 355.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002077/0.09993, allocations: 211 kB / 356 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005263/0.1005, allocations: 0.4908 MB / 356.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.1005, allocations: 0 / 356.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1005, allocations: 0 / 356.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.627e-05/0.1005, allocations: 0 / 356.5 MB, free: 14.62 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.00173/0.1023, allocations: 0.7796 MB / 357.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.1023, allocations: 11.89 kB / 357.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001047/0.1024, allocations: 44.45 kB / 357.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004336/0.1028, allocations: 338.5 kB / 357.7 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.514e-05/0.1029, allocations: 29.03 kB / 357.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.447e-05/0.1029, allocations: 28.38 kB / 357.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005703/0.1035, allocations: 350.2 kB / 358.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.1035, allocations: 0 / 358.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.749e-05/0.1036, allocations: 16 kB / 358.1 MB, free: 12.94 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.1036, allocations: 8 kB / 358.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004203/0.104, allocations: 242.4 kB / 358.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001795/0.1058, allocations: 1.307 MB / 359.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003887/0.1062, allocations: 182.5 kB / 359.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00026/0.1065, allocations: 132.7 kB / 360 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.218e-05/0.1066, allocations: 0 / 360 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.118e-05/0.1066, allocations: 42.56 kB / 360 MB, free: 10.93 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.182e-06/0.1066, allocations: 0 / 360 MB, free: 10.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004721/0.1071, allocations: 232.4 kB / 360.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.972e-05/0.1071, allocations: 55.41 kB / 360.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003596/0.1075, allocations: 315 kB / 360.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.51e-05/0.1075, allocations: 29.7 kB / 360.6 MB, free: 10.28 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/0.1077, allocations: 211.9 kB / 360.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.046e-05/0.1077, allocations: 55.2 kB / 360.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.217e-05/0.1078, allocations: 53.61 kB / 360.9 MB, free: 9.957 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.1079, allocations: 334.8 kB / 361.3 MB, free: 9.621 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001329/0.1081, allocations: 71.95 kB / 361.3 MB, free: 9.551 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001645/0.1083, allocations: 131.7 kB / 361.5 MB, free: 9.395 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002218/0.1085, allocations: 167.6 kB / 361.6 MB, free: 9.203 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.1085, allocations: 0 / 361.6 MB, free: 9.203 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003853/0.1089, allocations: 239.8 kB / 361.9 MB, free: 8.965 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.1089, allocations: 11.98 kB / 361.9 MB, free: 8.953 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.1089, allocations: 3.938 kB / 361.9 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.1089, allocations: 4 kB / 361.9 MB, free: 8.945 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001835/0.1091, allocations: 43.98 kB / 361.9 MB, free: 8.902 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.1091, allocations: 12.19 kB / 361.9 MB, free: 8.891 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004078/0.1096, allocations: 63.7 kB / 362 MB, free: 8.828 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.896e-05/0.1096, allocations: 12 kB / 362 MB, free: 8.816 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.000182/0.1098, allocations: 153.8 kB / 362.2 MB, free: 8.656 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.808e-05/0.1099, allocations: 31.56 kB / 362.2 MB, free: 8.625 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005336/0.1104, allocations: 207.8 kB / 362.4 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.1105, allocations: 0 / 362.4 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.1105, allocations: 0 / 362.4 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.1105, allocations: 0 / 362.4 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008517/0.1113, allocations: 0.6278 MB / 363 MB, free: 7.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.1114, allocations: 3.938 kB / 363 MB, free: 7.727 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001653/0.1115, allocations: 31.92 kB / 363 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.1115, allocations: 0 / 363 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.02e-05/0.1116, allocations: 12.03 kB / 363.1 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.1116, allocations: 0 / 363.1 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1116, allocations: 0 / 363.1 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005998/0.1122, allocations: 378.6 kB / 363.4 MB, free: 7.297 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001209/0.1123, allocations: 108.8 kB / 363.5 MB, free: 7.172 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.116e-05/0.1124, allocations: 0 / 363.5 MB, free: 7.172 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005453/0.1129, allocations: 59.98 kB / 363.6 MB, free: 7.113 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002204/0.1132, allocations: 71.88 kB / 363.7 MB, free: 7.043 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.944e-05/0.1132, allocations: 12 kB / 363.7 MB, free: 7.031 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002396/0.1134, allocations: 237.9 kB / 363.9 MB, free: 6.805 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.553e-06/0.1135, allocations: 0 / 363.9 MB, free: 6.805 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003819/0.1138, allocations: 87.62 kB / 364 MB, free: 6.719 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.0001623/0.114, allocations: 115.2 kB / 364.1 MB, free: 6.594 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003805/0.1144, allocations: 191.7 kB / 364.3 MB, free: 6.406 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.1144, allocations: 0 / 364.3 MB, free: 6.406 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000179/0.1146, allocations: 111.8 kB / 364.4 MB, free: 6.297 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004379/0.115, allocations: 56 kB / 364.5 MB, free: 6.242 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001462/0.1165, allocations: 0.7645 MB / 365.2 MB, free: 5.445 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003271/0.1169, allocations: 0.7753 MB / 366 MB, free: 4.641 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.117, allocations: 27.42 kB / 366 MB, free: 4.613 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.117, allocations: 0 / 366 MB, free: 4.613 MB / 302.1 MB Notification: Performance of Templates: time 0.007135/0.1241, allocations: 4.318 MB / 370.3 MB, free: 328 kB / 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