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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.426/1.426, allocations: 223.2 MB / 240.3 MB, free: 10.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008457/0.0008457, allocations: 92.36 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002659/0.000266, allocations: 7.938 kB / 351.1 MB, free: 15.1 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2821/0.2824, allocations: 50.41 MB / 401.5 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09774/0.3802, allocations: 81.47 MB / 483 MB, free: 14.98 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002322/0.3804, allocations: 75.95 kB / 483 MB, free: 14.91 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01746/0.3979, allocations: 6.362 MB / 489.4 MB, free: 8.52 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3979, allocations: 0 / 489.4 MB, free: 8.52 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.78e-05/0.398, allocations: 12 kB / 489.4 MB, free: 8.508 MB / 362.7 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.001564/0.3995, allocations: 0.7522 MB / 490.2 MB, free: 7.707 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/0.3996, allocations: 12.03 kB / 490.2 MB, free: 7.695 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001337/0.3997, allocations: 39.53 kB / 490.2 MB, free: 7.656 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00063/0.4004, allocations: 353.3 kB / 490.6 MB, free: 7.273 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.879e-05/0.4004, allocations: 28.66 kB / 490.6 MB, free: 7.246 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.57e-05/0.4005, allocations: 28 kB / 490.6 MB, free: 7.219 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005822/0.4011, allocations: 338.2 kB / 491 MB, free: 6.875 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.4011, allocations: 4 kB / 491 MB, free: 6.871 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.658e-05/0.4012, allocations: 19.95 kB / 491 MB, free: 6.852 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.4012, allocations: 8 kB / 491 MB, free: 6.844 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004282/0.4016, allocations: 230.5 kB / 491.2 MB, free: 6.617 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002027/0.4036, allocations: 1.327 MB / 492.5 MB, free: 5.207 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004168/0.4041, allocations: 263.6 kB / 492.8 MB, free: 4.922 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.28e-05/0.4041, allocations: 11.97 kB / 492.8 MB, free: 4.91 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.614e-05/0.4042, allocations: 34.55 kB / 492.8 MB, free: 4.867 MB / 362.7 MB Notification: Performance of pre-optimization done (n=16): time 2.124e-06/0.4042, allocations: 0 / 492.8 MB, free: 4.867 MB / 362.7 MB Notification: Performance of matching and sorting (n=16): time 0.000485/0.4047, allocations: 233.5 kB / 493.1 MB, free: 4.633 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.897e-05/0.4047, allocations: 51.41 kB / 493.1 MB, free: 4.57 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003367/0.4051, allocations: 298.1 kB / 493.4 MB, free: 4.281 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.679e-05/0.4051, allocations: 29.7 kB / 493.4 MB, free: 4.246 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.4052, allocations: 211.9 kB / 493.6 MB, free: 4.035 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.844e-05/0.4053, allocations: 51.27 kB / 493.7 MB, free: 3.984 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.297e-05/0.4053, allocations: 4 kB / 493.7 MB, free: 3.98 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.4054, allocations: 338.8 kB / 494 MB, free: 3.641 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001325/0.4056, allocations: 75.95 kB / 494.1 MB, free: 3.566 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001718/0.4058, allocations: 126.8 kB / 494.2 MB, free: 3.418 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001159/0.4059, allocations: 62.61 kB / 494.3 MB, free: 3.359 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.4059, allocations: 3.938 kB / 494.3 MB, free: 3.355 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003869/0.4063, allocations: 241.2 kB / 494.5 MB, free: 3.113 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.4063, allocations: 7.938 kB / 494.5 MB, free: 3.105 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.4063, allocations: 0 / 494.5 MB, free: 3.105 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.4063, allocations: 4 kB / 494.5 MB, free: 3.102 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001902/0.4065, allocations: 47.98 kB / 494.6 MB, free: 3.055 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.139e-05/0.4066, allocations: 11.92 kB / 494.6 MB, free: 3.043 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004035/0.407, allocations: 80 kB / 494.7 MB, free: 2.965 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.108e-05/0.407, allocations: 11.95 kB / 494.7 MB, free: 2.953 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on1,pulseSeries.on2,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001698/0.4072, allocations: 161.8 kB / 494.8 MB, free: 2.785 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.705e-05/0.4072, allocations: 31.56 kB / 494.9 MB, free: 2.754 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003996/0.4077, allocations: 191.8 kB / 495.1 MB, free: 2.555 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.4077, allocations: 4 kB / 495.1 MB, free: 2.551 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.4077, allocations: 0 / 495.1 MB, free: 2.551 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.4077, allocations: 0 / 495.1 MB, free: 2.551 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007967/0.4085, allocations: 0.6426 MB / 495.7 MB, free: 1.852 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.4085, allocations: 0 / 495.7 MB, free: 1.852 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001561/0.4087, allocations: 23.98 kB / 495.7 MB, free: 1.828 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.4087, allocations: 4 kB / 495.7 MB, free: 1.824 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.895e-05/0.4087, allocations: 3.938 kB / 495.7 MB, free: 1.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.479e-06/0.4087, allocations: 11.92 kB / 495.8 MB, free: 1.809 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.4087, allocations: 3.953 kB / 495.8 MB, free: 1.805 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004927/0.4092, allocations: 380.5 kB / 496.1 MB, free: 1.41 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.757e-05/0.4093, allocations: 108.8 kB / 496.2 MB, free: 1.285 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.171e-05/0.4094, allocations: 3.984 kB / 496.2 MB, free: 1.281 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004452/0.4098, allocations: 83.94 kB / 496.3 MB, free: 1.199 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001673/0.41, allocations: 75.88 kB / 496.4 MB, free: 1.125 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.743e-05/0.41, allocations: 4 kB / 496.4 MB, free: 1.121 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002395/0.4103, allocations: 233.9 kB / 496.6 MB, free: 0.8906 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4103, allocations: 4 kB / 496.6 MB, free: 0.8867 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003587/0.4106, allocations: 87.69 kB / 496.7 MB, free: 0.8008 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001649/0.4108, allocations: 115.2 kB / 496.8 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003276/0.4111, allocations: 175.8 kB / 497 MB, free: 0.5078 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.4112, allocations: 0 / 497 MB, free: 0.5078 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001651/0.4113, allocations: 111.8 kB / 497.1 MB, free: 408 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003155/0.4116, allocations: 52.22 kB / 497.2 MB, free: 360 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001433/0.4131, allocations: 0.8944 MB / 498.1 MB, free: 15.42 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003505/0.4135, allocations: 0.7911 MB / 498.8 MB, free: 14.61 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001502/0.4136, allocations: 26.3 kB / 498.9 MB, free: 14.58 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.132e-05/0.4137, allocations: 35.36 kB / 498.9 MB, free: 14.54 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4137, allocations: 0 / 498.9 MB, free: 14.54 MB / 378.7 MB Notification: Performance of Templates: time 0.007337/0.4211, allocations: 3.612 MB / 0.4907 GB, free: 10.98 MB / 378.7 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","../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches