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.001446/0.001446, allocations: 111.4 kB / 17.74 MB, free: 5.23 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.001699/0.001699, allocations: 188.5 kB / 18.66 MB, free: 4.312 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.34/1.34, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001062/0.001063, allocations: 47.92 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.254, allocations: 49.43 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004633/0.2586, allocations: 2.968 MB / 404.4 MB, free: 5.895 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00162/0.2603, allocations: 0.7128 MB / 405.1 MB, free: 5.176 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003388/0.2607, allocations: 11.94 kB / 405.1 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002812/0.261, allocations: 59.42 kB / 405.1 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004205/0.2614, allocations: 107.1 kB / 405.2 MB, free: 5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004657/0.2619, allocations: 107.8 kB / 405.4 MB, free: 4.895 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000576/0.2625, allocations: 414.2 kB / 405.8 MB, free: 4.488 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003461/0.2628, allocations: 213.7 kB / 406 MB, free: 4.277 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001813/0.263, allocations: 155.4 kB / 406.1 MB, free: 4.125 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002515/0.2633, allocations: 183.2 kB / 406.3 MB, free: 3.945 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.919e-05/0.2634, allocations: 40 kB / 406.3 MB, free: 3.906 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001249/0.2635, allocations: 59.92 kB / 406.4 MB, free: 3.848 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001404/0.2636, allocations: 103.7 kB / 406.5 MB, free: 3.746 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00017/0.2638, allocations: 203 kB / 406.7 MB, free: 3.547 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000499/0.2643, allocations: 0.4994 MB / 407.2 MB, free: 3.051 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2643, allocations: 0 / 407.2 MB, free: 3.051 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2643, allocations: 4 kB / 407.2 MB, free: 3.047 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.425e-05/0.2644, allocations: 4 kB / 407.2 MB, free: 3.043 MB / 318.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.001649/0.266, allocations: 0.7835 MB / 408 MB, free: 2.211 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.2661, allocations: 11.89 kB / 408 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.053e-05/0.2662, allocations: 44.41 kB / 408 MB, free: 2.156 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005095/0.2667, allocations: 346.6 kB / 408.4 MB, free: 1.781 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.463e-05/0.2667, allocations: 25.03 kB / 408.4 MB, free: 1.758 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.363e-05/0.2668, allocations: 28.38 kB / 408.4 MB, free: 1.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005751/0.2674, allocations: 350.2 kB / 408.8 MB, free: 1.371 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.2674, allocations: 4 kB / 408.8 MB, free: 1.367 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.641e-05/0.2674, allocations: 15.97 kB / 408.8 MB, free: 1.352 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.869e-06/0.2674, allocations: 8 kB / 408.8 MB, free: 1.344 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004174/0.2679, allocations: 234.5 kB / 409 MB, free: 1.117 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001815/0.2697, allocations: 1.296 MB / 410.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003902/0.2701, allocations: 182.5 kB / 410.5 MB, free: 15.55 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002692/0.2704, allocations: 132.7 kB / 410.6 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.362e-05/0.2704, allocations: 0 / 410.6 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.514e-05/0.2704, allocations: 34.56 kB / 410.7 MB, free: 15.37 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.052e-06/0.2705, allocations: 0 / 410.7 MB, free: 15.37 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005072/0.271, allocations: 225.6 kB / 410.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.524e-05/0.271, allocations: 59.34 kB / 410.9 MB, free: 15.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003702/0.2714, allocations: 322.9 kB / 411.3 MB, free: 14.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.574e-05/0.2714, allocations: 29.7 kB / 411.3 MB, free: 14.71 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001336/0.2716, allocations: 212 kB / 411.5 MB, free: 14.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.926e-05/0.2716, allocations: 55.2 kB / 411.5 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.148e-05/0.2717, allocations: 49.64 kB / 411.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.2719, allocations: 338.8 kB / 411.9 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001277/0.272, allocations: 71.95 kB / 412 MB, free: 13.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001733/0.2722, allocations: 131.7 kB / 412.1 MB, free: 13.82 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002223/0.2724, allocations: 163.6 kB / 412.3 MB, free: 13.64 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2724, allocations: 0 / 412.3 MB, free: 13.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003915/0.2728, allocations: 243.5 kB / 412.5 MB, free: 13.39 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.2728, allocations: 8.25 kB / 412.5 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.2728, allocations: 7.984 kB / 412.5 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.2729, allocations: 4 kB / 412.5 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001921/0.2731, allocations: 51.84 kB / 412.6 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.263e-05/0.2731, allocations: 7.938 kB / 412.6 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004/0.2735, allocations: 63.67 kB / 412.7 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.651e-05/0.2735, allocations: 16 kB / 412.7 MB, free: 13.24 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.000164/0.2737, allocations: 149.8 kB / 412.8 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.016e-05/0.2738, allocations: 27.66 kB / 412.9 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003911/0.2742, allocations: 207.4 kB / 413.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.2742, allocations: 0 / 413.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.2742, allocations: 0 / 413.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.2742, allocations: 3.984 kB / 413.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008205/0.275, allocations: 0.6319 MB / 413.7 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.275, allocations: 4.031 kB / 413.7 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001635/0.2752, allocations: 31.97 kB / 413.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.2752, allocations: 0 / 413.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.024e-05/0.2752, allocations: 4 kB / 413.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.048e-06/0.2753, allocations: 7.938 kB / 413.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2753, allocations: 0 / 413.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005452/0.2758, allocations: 380.3 kB / 414.1 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.963e-05/0.2759, allocations: 112.8 kB / 414.2 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.626e-05/0.276, allocations: 4 kB / 414.2 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004515/0.2764, allocations: 51.92 kB / 414.3 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001731/0.2766, allocations: 75.88 kB / 414.4 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.821e-05/0.2766, allocations: 8 kB / 414.4 MB, free: 11.45 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002496/0.2769, allocations: 237.9 kB / 414.6 MB, free: 11.22 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2769, allocations: 0 / 414.6 MB, free: 11.22 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003861/0.2773, allocations: 83.69 kB / 414.7 MB, free: 11.14 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.0001717/0.2775, allocations: 115.1 kB / 414.8 MB, free: 11.01 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00037/0.2778, allocations: 179.8 kB / 415 MB, free: 10.84 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2779, allocations: 0.5 kB / 415 MB, free: 10.84 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001721/0.278, allocations: 111.9 kB / 415.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004487/0.2785, allocations: 52.73 kB / 415.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001464/0.28, allocations: 0.7444 MB / 415.9 MB, free: 9.895 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003348/0.2803, allocations: 0.7829 MB / 416.6 MB, free: 9.082 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001094/0.2804, allocations: 31.38 kB / 416.7 MB, free: 9.051 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2804, allocations: 0 / 416.7 MB, free: 9.051 MB / 334.1 MB Notification: Performance of Templates: time 0.007194/0.2876, allocations: 4.346 MB / 421 MB, free: 4.727 MB / 334.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