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.001605/0.001605, allocations: 111.9 kB / 17.68 MB, free: 5.355 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.001916/0.001916, allocations: 192 kB / 18.62 MB, free: 4.434 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.384/1.384, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001034/0.001034, allocations: 50.77 kB / 302.1 MB, free: 5.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09844/0.09949, allocations: 49.44 MB / 351.5 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004637/0.1042, allocations: 2.963 MB / 354.5 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001333/0.1056, allocations: 0.7128 MB / 355.2 MB, free: 16 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001643/0.1057, allocations: 7.938 kB / 355.2 MB, free: 8 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000252/0.106, allocations: 63.53 kB / 355.2 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002498/0.1063, allocations: 103.1 kB / 355.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003516/0.1067, allocations: 111.8 kB / 355.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004015/0.1071, allocations: 414.2 kB / 355.9 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003135/0.1074, allocations: 201.8 kB / 356.1 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000162/0.1076, allocations: 163.4 kB / 356.2 MB, free: 14.97 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002468/0.1078, allocations: 183.2 kB / 356.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.552e-05/0.1079, allocations: 40 kB / 356.4 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001106/0.108, allocations: 48 kB / 356.5 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001545/0.1082, allocations: 115.6 kB / 356.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001835/0.1083, allocations: 203.1 kB / 356.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004801/0.1088, allocations: 498.2 kB / 357.3 MB, free: 13.9 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1089, allocations: 11.94 kB / 357.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1089, allocations: 0 / 357.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.545e-06/0.1089, allocations: 0 / 357.3 MB, free: 13.89 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.00155/0.1104, allocations: 0.7951 MB / 358.1 MB, free: 13.05 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.1105, allocations: 8.031 kB / 358.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.934e-05/0.1106, allocations: 40.47 kB / 358.1 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005586/0.1111, allocations: 346.5 kB / 358.5 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.719e-05/0.1112, allocations: 21.03 kB / 358.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.39e-05/0.1112, allocations: 32.38 kB / 358.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005834/0.1118, allocations: 354.2 kB / 358.9 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.1119, allocations: 0 / 358.9 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.629e-05/0.1119, allocations: 16 kB / 358.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.796e-06/0.1119, allocations: 4 kB / 358.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004184/0.1123, allocations: 238.5 kB / 359.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001807/0.1142, allocations: 1.299 MB / 360.4 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003913/0.1146, allocations: 178.5 kB / 360.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002551/0.1148, allocations: 128.7 kB / 360.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.871e-05/0.1149, allocations: 7.984 kB / 360.7 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.643e-05/0.115, allocations: 38.56 kB / 360.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 2.034e-06/0.115, allocations: 0 / 360.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004899/0.1155, allocations: 236.3 kB / 361 MB, free: 9.977 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.164e-05/0.1155, allocations: 55.41 kB / 361 MB, free: 9.91 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003608/0.1159, allocations: 315 kB / 361.4 MB, free: 9.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.418e-05/0.1159, allocations: 29.7 kB / 361.4 MB, free: 9.555 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000133/0.1161, allocations: 208 kB / 361.6 MB, free: 9.348 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.428e-05/0.1161, allocations: 55.2 kB / 361.6 MB, free: 9.293 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.531e-05/0.1162, allocations: 45.61 kB / 361.7 MB, free: 9.242 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.1164, allocations: 338.8 kB / 362 MB, free: 8.902 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001379/0.1165, allocations: 75.95 kB / 362.1 MB, free: 8.828 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001632/0.1167, allocations: 131.7 kB / 362.2 MB, free: 8.672 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002222/0.1169, allocations: 159.6 kB / 362.4 MB, free: 8.488 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.1169, allocations: 0 / 362.4 MB, free: 8.488 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003929/0.1173, allocations: 249 kB / 362.6 MB, free: 8.238 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.1174, allocations: 6.344 kB / 362.6 MB, free: 8.234 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.218e-06/0.1174, allocations: 7.938 kB / 362.6 MB, free: 8.227 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.044e-05/0.1174, allocations: 3.984 kB / 362.6 MB, free: 8.223 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001921/0.1176, allocations: 43.92 kB / 362.7 MB, free: 8.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.946e-06/0.1176, allocations: 4 kB / 362.7 MB, free: 8.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003708/0.118, allocations: 75.95 kB / 362.8 MB, free: 8.102 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.849e-05/0.118, allocations: 11.94 kB / 362.8 MB, free: 8.09 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.0001544/0.1182, allocations: 153.7 kB / 362.9 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.734e-05/0.1183, allocations: 31.56 kB / 363 MB, free: 7.898 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004013/0.1187, allocations: 203.7 kB / 363.1 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.1187, allocations: 0 / 363.1 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.1187, allocations: 0 / 363.1 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.1187, allocations: 11.98 kB / 363.2 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008247/0.1195, allocations: 0.6241 MB / 363.8 MB, free: 6.996 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.1195, allocations: 0 / 363.8 MB, free: 6.996 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001586/0.1197, allocations: 27.98 kB / 363.8 MB, free: 6.969 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1197, allocations: 0 / 363.8 MB, free: 6.969 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.818e-05/0.1197, allocations: 8 kB / 363.8 MB, free: 6.961 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.1198, allocations: 0 / 363.8 MB, free: 6.961 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.137e-06/0.1198, allocations: 0 / 363.8 MB, free: 6.961 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005085/0.1203, allocations: 387 kB / 364.2 MB, free: 6.566 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001057/0.1204, allocations: 104.8 kB / 364.3 MB, free: 6.445 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.798e-05/0.1204, allocations: 12 kB / 364.3 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003816/0.1208, allocations: 51.98 kB / 364.4 MB, free: 6.383 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001818/0.121, allocations: 79.88 kB / 364.4 MB, free: 6.305 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.684e-05/0.121, allocations: 4 kB / 364.4 MB, free: 6.301 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002372/0.1213, allocations: 237.9 kB / 364.7 MB, free: 6.074 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1213, allocations: 0 / 364.7 MB, free: 6.074 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003675/0.1217, allocations: 87.69 kB / 364.8 MB, free: 5.988 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.0001661/0.1218, allocations: 107.2 kB / 364.9 MB, free: 5.871 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003611/0.1222, allocations: 183.9 kB / 365 MB, free: 5.691 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1222, allocations: 0 / 365 MB, free: 5.691 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001785/0.1224, allocations: 111.8 kB / 365.2 MB, free: 5.582 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004326/0.1228, allocations: 64.7 kB / 365.2 MB, free: 5.512 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001358/0.1242, allocations: 0.7191 MB / 365.9 MB, free: 4.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000323/0.1245, allocations: 0.7791 MB / 366.7 MB, free: 3.961 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001224/0.1247, allocations: 42.28 kB / 366.8 MB, free: 3.922 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.79e-05/0.1248, allocations: 23.44 kB / 366.8 MB, free: 3.898 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1248, allocations: 0 / 366.8 MB, free: 3.898 MB / 302.1 MB Notification: Performance of Templates: time 0.1594/0.2842, allocations: 4.502 MB / 371.3 MB, free: 25.14 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 gbode -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