Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001211/0.001211, allocations: 117.6 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001375/0.001375, allocations: 204.7 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 59.91 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2651/0.2663, allocations: 50.53 MB / 409.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004074/0.2704, allocations: 2.988 MB / 412.2 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001588/0.272, allocations: 0.7439 MB / 413 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002632/0.2723, allocations: 4 kB / 413 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002468/0.2726, allocations: 63.38 kB / 413 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004299/0.273, allocations: 107.1 kB / 413.1 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003859/0.2734, allocations: 99.88 kB / 413.2 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005027/0.2739, allocations: 414.3 kB / 413.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003373/0.2743, allocations: 213.7 kB / 413.8 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002061/0.2745, allocations: 155.5 kB / 414 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002834/0.2748, allocations: 183.2 kB / 414.2 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.159e-05/0.2749, allocations: 40 kB / 414.2 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001384/0.275, allocations: 59.98 kB / 414.3 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001668/0.2752, allocations: 103.7 kB / 414.4 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001922/0.2754, allocations: 211 kB / 414.6 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005239/0.2759, allocations: 0.4954 MB / 415.1 MB, free: 11.74 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2759, allocations: 0 / 415.1 MB, free: 11.74 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.2759, allocations: 4 kB / 415.1 MB, free: 11.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.215e-05/0.276, allocations: 0 / 415.1 MB, free: 11.73 MB / 334.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.001847/0.2778, allocations: 0.7873 MB / 415.9 MB, free: 10.9 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.2779, allocations: 8.031 kB / 415.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001179/0.278, allocations: 48.47 kB / 415.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005794/0.2786, allocations: 346.6 kB / 416.3 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.529e-05/0.2786, allocations: 21.03 kB / 416.3 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.852e-05/0.2787, allocations: 36.38 kB / 416.3 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006065/0.2793, allocations: 342.2 kB / 416.6 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.2793, allocations: 4 kB / 416.6 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.371e-05/0.2794, allocations: 8 kB / 416.7 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.2794, allocations: 8 kB / 416.7 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000459/0.2799, allocations: 238.5 kB / 416.9 MB, free: 9.816 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001901/0.2818, allocations: 1.296 MB / 418.2 MB, free: 8.434 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003698/0.2822, allocations: 182.5 kB / 418.4 MB, free: 8.246 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002645/0.2824, allocations: 128.7 kB / 418.5 MB, free: 8.117 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.673e-05/0.2825, allocations: 3.984 kB / 418.5 MB, free: 8.113 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.59e-05/0.2825, allocations: 38.56 kB / 418.5 MB, free: 8.066 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.322e-06/0.2825, allocations: 3.938 kB / 418.5 MB, free: 8.062 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004932/0.283, allocations: 225.2 kB / 418.8 MB, free: 7.836 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.971e-05/0.2831, allocations: 59.69 kB / 418.8 MB, free: 7.766 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003966/0.2835, allocations: 319 kB / 419.1 MB, free: 7.445 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.387e-05/0.2835, allocations: 25.7 kB / 419.2 MB, free: 7.414 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001444/0.2837, allocations: 220 kB / 419.4 MB, free: 7.195 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.649e-05/0.2837, allocations: 55.2 kB / 419.4 MB, free: 7.141 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.503e-05/0.2838, allocations: 41.7 kB / 419.5 MB, free: 7.094 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.2839, allocations: 338.8 kB / 419.8 MB, free: 6.754 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001362/0.2841, allocations: 71.97 kB / 419.9 MB, free: 6.684 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001794/0.2843, allocations: 139.6 kB / 420 MB, free: 6.52 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002247/0.2845, allocations: 163.5 kB / 420.2 MB, free: 6.332 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.2845, allocations: 0 / 420.2 MB, free: 6.332 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.00042/0.2849, allocations: 247.5 kB / 420.4 MB, free: 6.086 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.285, allocations: 8 kB / 420.4 MB, free: 6.078 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.285, allocations: 0 / 420.4 MB, free: 6.078 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.285, allocations: 4 kB / 420.4 MB, free: 6.074 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001804/0.2852, allocations: 47.91 kB / 420.5 MB, free: 6.027 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.2852, allocations: 4 kB / 420.5 MB, free: 6.023 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000359/0.2856, allocations: 63.98 kB / 420.5 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.264e-05/0.2856, allocations: 16 kB / 420.5 MB, free: 5.945 MB / 334.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.000147/0.2858, allocations: 149.7 kB / 420.7 MB, free: 5.789 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.552e-05/0.2858, allocations: 27.66 kB / 420.7 MB, free: 5.762 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004012/0.2862, allocations: 215.3 kB / 420.9 MB, free: 5.551 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.2862, allocations: 0 / 420.9 MB, free: 5.551 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.2862, allocations: 0 / 420.9 MB, free: 5.551 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.2863, allocations: 0 / 420.9 MB, free: 5.551 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008348/0.2871, allocations: 0.6358 MB / 421.6 MB, free: 4.852 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.2871, allocations: 0 / 421.6 MB, free: 4.852 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001649/0.2873, allocations: 27.98 kB / 421.6 MB, free: 4.824 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.2873, allocations: 0 / 421.6 MB, free: 4.824 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.314e-05/0.2873, allocations: 8 kB / 421.6 MB, free: 4.816 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.2873, allocations: 0 / 421.6 MB, free: 4.816 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/0.2873, allocations: 3.984 kB / 421.6 MB, free: 4.812 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005229/0.2879, allocations: 384.3 kB / 422 MB, free: 4.418 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.974e-05/0.288, allocations: 108.8 kB / 422.1 MB, free: 4.293 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.128e-05/0.288, allocations: 7.938 kB / 422.1 MB, free: 4.285 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003997/0.2884, allocations: 59.91 kB / 422.1 MB, free: 4.227 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001747/0.2886, allocations: 71.95 kB / 422.2 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.898e-05/0.2886, allocations: 8 kB / 422.2 MB, free: 4.148 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002764/0.2889, allocations: 237.9 kB / 422.5 MB, free: 3.914 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2889, allocations: 0 / 422.5 MB, free: 3.914 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004098/0.2894, allocations: 87.69 kB / 422.5 MB, free: 3.828 MB / 334.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.0002096/0.2896, allocations: 107.2 kB / 422.7 MB, free: 3.711 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004115/0.29, allocations: 180.2 kB / 422.8 MB, free: 3.535 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.29, allocations: 0 / 422.8 MB, free: 3.535 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002/0.2902, allocations: 107.9 kB / 422.9 MB, free: 3.43 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004393/0.2907, allocations: 60.78 kB / 423 MB, free: 3.367 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001425/0.2921, allocations: 0.7119 MB / 423.7 MB, free: 2.625 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003702/0.2925, allocations: 0.7714 MB / 424.5 MB, free: 1.824 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000145/0.2926, allocations: 38.27 kB / 424.5 MB, free: 1.785 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001085/0.2927, allocations: 27.44 kB / 424.5 MB, free: 1.758 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2928, allocations: 0 / 424.5 MB, free: 1.758 MB / 334.1 MB Notification: Performance of Templates: time 0.00956/0.3023, allocations: 4.531 MB / 429.1 MB, free: 13.28 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches