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.0008822/0.0008823, allocations: 91.17 kB / 17.31 MB, free: 6.535 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.000938/0.0009379, allocations: 178.3 kB / 18.21 MB, free: 5.68 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.279/1.279, allocations: 223.3 MB / 242.3 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000222/0.0002221, allocations: 7.938 kB / 302.1 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07321/0.07345, allocations: 50.41 MB / 352.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.002719/0.07619, allocations: 2.629 MB / 355.1 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001129/0.07734, allocations: 0.705 MB / 355.8 MB, free: 348 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001725/0.07753, allocations: 4 kB / 355.8 MB, free: 344 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001615/0.0777, allocations: 51.62 kB / 355.9 MB, free: 292 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000244/0.07795, allocations: 95.3 kB / 356 MB, free: 196 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002588/0.07822, allocations: 87.92 kB / 356.1 MB, free: 108 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003951/0.07862, allocations: 410.3 kB / 356.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002645/0.0789, allocations: 173.3 kB / 356.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001352/0.07904, allocations: 119.5 kB / 356.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00022/0.07927, allocations: 159.2 kB / 356.9 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.985e-05/0.07932, allocations: 16 kB / 356.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.974e-05/0.07941, allocations: 31.92 kB / 356.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001156/0.07954, allocations: 83.66 kB / 357 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001595/0.0797, allocations: 200.7 kB / 357.2 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003188/0.08003, allocations: 379.2 kB / 357.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.963e-06/0.08004, allocations: 0 / 357.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.08005, allocations: 0 / 357.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.08006, allocations: 0 / 357.6 MB, free: 14.55 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.001496/0.08156, allocations: 0.772 MB / 358.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.932e-05/0.0816, allocations: 8.031 kB / 358.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.759e-05/0.08169, allocations: 40.47 kB / 358.4 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003877/0.08208, allocations: 346.5 kB / 358.8 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.317e-05/0.08212, allocations: 29.03 kB / 358.8 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.08e-05/0.08218, allocations: 32.38 kB / 358.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005543/0.08274, allocations: 342.2 kB / 359.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.08276, allocations: 3.938 kB / 359.2 MB, free: 12.9 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.323e-05/0.0828, allocations: 12 kB / 359.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.836e-06/0.08281, allocations: 8 kB / 359.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004294/0.08325, allocations: 238.5 kB / 359.4 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001713/0.08497, allocations: 1.323 MB / 360.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003497/0.08533, allocations: 178.5 kB / 360.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002516/0.08559, allocations: 132.7 kB / 361 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.588e-05/0.08563, allocations: 4 kB / 361 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.222e-05/0.08566, allocations: 34.56 kB / 361.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.393e-06/0.08567, allocations: 0 / 361.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004401/0.08611, allocations: 229.5 kB / 361.3 MB, free: 10.65 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.335e-05/0.08616, allocations: 63.34 kB / 361.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003352/0.0865, allocations: 311 kB / 361.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.3e-05/0.08653, allocations: 29.7 kB / 361.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.08665, allocations: 208 kB / 361.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.016e-05/0.08671, allocations: 63.19 kB / 362 MB, free: 9.961 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.576e-05/0.08676, allocations: 29.7 kB / 362 MB, free: 9.926 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.776e-05/0.08687, allocations: 334.8 kB / 362.3 MB, free: 9.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001346/0.08701, allocations: 71.95 kB / 362.4 MB, free: 9.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001648/0.08718, allocations: 127.7 kB / 362.5 MB, free: 9.367 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002259/0.08742, allocations: 175.5 kB / 362.7 MB, free: 9.168 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.08743, allocations: 4 kB / 362.7 MB, free: 9.164 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003821/0.08782, allocations: 239.7 kB / 362.9 MB, free: 8.926 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.08784, allocations: 4 kB / 362.9 MB, free: 8.922 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.08785, allocations: 8 kB / 362.9 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.08787, allocations: 4 kB / 362.9 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001829/0.08806, allocations: 52.16 kB / 363 MB, free: 8.859 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.08808, allocations: 4 kB / 363 MB, free: 8.855 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004377/0.08852, allocations: 91.7 kB / 363.1 MB, free: 8.766 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.47e-05/0.08855, allocations: 11.94 kB / 363.1 MB, free: 8.754 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.000137/0.08869, allocations: 149.8 kB / 363.2 MB, free: 8.598 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.947e-05/0.08876, allocations: 35.64 kB / 363.3 MB, free: 8.562 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003885/0.08916, allocations: 195.7 kB / 363.5 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.08917, allocations: 0 / 363.5 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.08918, allocations: 4 kB / 363.5 MB, free: 8.359 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.08919, allocations: 7.984 kB / 363.5 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007296/0.08992, allocations: 0.6231 MB / 364.1 MB, free: 7.672 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.08994, allocations: 7.984 kB / 364.1 MB, free: 7.664 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001545/0.0901, allocations: 27.98 kB / 364.1 MB, free: 7.637 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.09011, allocations: 4 kB / 364.1 MB, free: 7.633 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.529e-05/0.09013, allocations: 0 / 364.1 MB, free: 7.633 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.09014, allocations: 0 / 364.1 MB, free: 7.633 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/0.09015, allocations: 4 kB / 364.1 MB, free: 7.629 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004672/0.09062, allocations: 387.8 kB / 364.5 MB, free: 7.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.281e-05/0.09071, allocations: 104.8 kB / 364.6 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.22e-05/0.09076, allocations: 4 kB / 364.6 MB, free: 7.105 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004654/0.09123, allocations: 79.98 kB / 364.7 MB, free: 7.027 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001735/0.09141, allocations: 71.88 kB / 364.8 MB, free: 6.957 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.626e-05/0.09143, allocations: 8 kB / 364.8 MB, free: 6.949 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002363/0.09168, allocations: 237.9 kB / 365 MB, free: 6.719 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.09168, allocations: 0 / 365 MB, free: 6.719 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003538/0.09205, allocations: 91.62 kB / 365.1 MB, free: 6.629 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.0001143/0.09217, allocations: 111.1 kB / 365.2 MB, free: 6.512 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003226/0.0925, allocations: 183.7 kB / 365.4 MB, free: 6.332 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.09251, allocations: 0.5 kB / 365.4 MB, free: 6.332 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000173/0.09269, allocations: 111.9 kB / 365.5 MB, free: 6.223 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004286/0.09312, allocations: 60.05 kB / 365.6 MB, free: 6.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001411/0.09455, allocations: 0.9627 MB / 366.5 MB, free: 5.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002862/0.09484, allocations: 0.7755 MB / 367.3 MB, free: 4.359 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001029/0.09495, allocations: 23.44 kB / 367.3 MB, free: 4.336 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.09496, allocations: 0 / 367.3 MB, free: 4.336 MB / 302.1 MB Notification: Performance of Templates: time 0.006171/0.1011, allocations: 4.256 MB / 371.6 MB, free: 108 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