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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001782/0.001782, allocations: 105.1 kB / 17.06 MB, free: 6.098 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.001897/0.001898, allocations: 200.1 kB / 18 MB, free: 5.168 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.385/1.385, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 51.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.2523, allocations: 49.45 MB / 400.2 MB, free: 8.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004368/0.2567, allocations: 2.958 MB / 403.2 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001335/0.2581, allocations: 0.7206 MB / 403.9 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000157/0.2583, allocations: 4 kB / 403.9 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000214/0.2585, allocations: 63.36 kB / 404 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002643/0.2588, allocations: 107.1 kB / 404.1 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003281/0.2591, allocations: 99.86 kB / 404.2 MB, free: 4.844 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000481/0.2596, allocations: 418.2 kB / 404.6 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003426/0.26, allocations: 217.7 kB / 404.8 MB, free: 4.219 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001814/0.2601, allocations: 155.4 kB / 405 MB, free: 4.066 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002729/0.2604, allocations: 187.2 kB / 405.1 MB, free: 3.883 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.187e-05/0.2605, allocations: 40 kB / 405.2 MB, free: 3.844 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001328/0.2606, allocations: 55.98 kB / 405.2 MB, free: 3.789 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001706/0.2608, allocations: 107.7 kB / 405.3 MB, free: 3.684 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002123/0.261, allocations: 211 kB / 405.5 MB, free: 3.477 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006427/0.2617, allocations: 0.4893 MB / 406 MB, free: 2.988 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.2617, allocations: 4 kB / 406 MB, free: 2.984 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.2617, allocations: 0 / 406 MB, free: 2.984 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.12e-05/0.2618, allocations: 3.938 kB / 406 MB, free: 2.98 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.001818/0.2636, allocations: 0.7987 MB / 406.8 MB, free: 2.133 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.2636, allocations: 8.031 kB / 406.8 MB, free: 2.125 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.538e-05/0.2637, allocations: 74.66 kB / 406.9 MB, free: 2.043 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.98e-05/0.2638, allocations: 48.66 kB / 407 MB, free: 1.996 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005051/0.2643, allocations: 346.7 kB / 407.3 MB, free: 1.621 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.735e-05/0.2644, allocations: 25.03 kB / 407.3 MB, free: 1.598 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.773e-05/0.2644, allocations: 32.38 kB / 407.4 MB, free: 1.566 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005853/0.265, allocations: 338 kB / 407.7 MB, free: 1.219 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.265, allocations: 0 / 407.7 MB, free: 1.219 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.512e-05/0.2651, allocations: 16 kB / 407.7 MB, free: 1.203 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.317e-05/0.2651, allocations: 11.98 kB / 407.7 MB, free: 1.191 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004337/0.2655, allocations: 242.4 kB / 408 MB, free: 0.957 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001895/0.2674, allocations: 1.296 MB / 409.2 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004444/0.2679, allocations: 174.5 kB / 409.4 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002748/0.2682, allocations: 129.1 kB / 409.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.458e-05/0.2682, allocations: 7.938 kB / 409.6 MB, free: 15.26 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.583e-05/0.2683, allocations: 42.5 kB / 409.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.282e-06/0.2683, allocations: 0 / 409.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005013/0.2688, allocations: 217.5 kB / 409.8 MB, free: 14.99 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.668e-05/0.2689, allocations: 51.41 kB / 409.9 MB, free: 14.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003927/0.2693, allocations: 326.9 kB / 410.2 MB, free: 14.6 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.942e-05/0.2693, allocations: 33.69 kB / 410.2 MB, free: 14.56 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001566/0.2695, allocations: 216.4 kB / 410.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.746e-05/0.2695, allocations: 59.48 kB / 410.5 MB, free: 14.29 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.683e-05/0.2696, allocations: 41.7 kB / 410.5 MB, free: 14.24 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001868/0.2698, allocations: 334.8 kB / 410.8 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001467/0.27, allocations: 71.97 kB / 410.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001847/0.2702, allocations: 139.6 kB / 411.1 MB, free: 13.66 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002467/0.2704, allocations: 163.6 kB / 411.2 MB, free: 13.48 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2704, allocations: 0 / 411.2 MB, free: 13.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004079/0.2708, allocations: 247.5 kB / 411.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.2709, allocations: 11.94 kB / 411.5 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.2709, allocations: 0 / 411.5 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.2709, allocations: 4.25 kB / 411.5 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001883/0.2711, allocations: 51.91 kB / 411.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.2711, allocations: 0 / 411.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000384/0.2715, allocations: 71.77 kB / 411.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.633e-05/0.2715, allocations: 8 kB / 411.6 MB, free: 13.09 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.0001729/0.2717, allocations: 157.7 kB / 411.8 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.614e-05/0.2718, allocations: 27.86 kB / 411.8 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004214/0.2722, allocations: 207.7 kB / 412 MB, free: 12.69 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.2722, allocations: 4 kB / 412 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.2722, allocations: 0 / 412 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.2722, allocations: 0 / 412 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008343/0.2731, allocations: 0.6313 MB / 412.6 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.2731, allocations: 0 / 412.6 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001568/0.2733, allocations: 31.92 kB / 412.6 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.2733, allocations: 4.031 kB / 412.7 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.769e-05/0.2733, allocations: 4 kB / 412.7 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.27e-06/0.2733, allocations: 7.984 kB / 412.7 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2733, allocations: 0 / 412.7 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005292/0.2738, allocations: 380.4 kB / 413 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001012/0.274, allocations: 108.9 kB / 413.1 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.501e-05/0.274, allocations: 7.984 kB / 413.2 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004153/0.2744, allocations: 59.98 kB / 413.2 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001831/0.2746, allocations: 67.89 kB / 413.3 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.19e-05/0.2747, allocations: 15.92 kB / 413.3 MB, free: 11.28 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002584/0.2749, allocations: 230 kB / 413.5 MB, free: 11.06 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.2749, allocations: 0 / 413.5 MB, free: 11.06 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003517/0.2753, allocations: 91.78 kB / 413.6 MB, free: 10.97 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.0008894/0.2762, allocations: 0.9226 MB / 414.5 MB, free: 10.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003559/0.2765, allocations: 184.3 kB / 414.7 MB, free: 9.836 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2766, allocations: 0 / 414.7 MB, free: 9.836 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001819/0.2767, allocations: 111.2 kB / 414.8 MB, free: 9.73 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000416/0.2772, allocations: 63.78 kB / 414.9 MB, free: 9.668 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004021/0.2812, allocations: 3.048 MB / 417.9 MB, free: 6.477 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004352/0.2816, allocations: 0.7829 MB / 418.7 MB, free: 5.668 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001527/0.2818, allocations: 34.3 kB / 418.7 MB, free: 5.637 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000175/0.282, allocations: 107.4 kB / 418.8 MB, free: 5.531 MB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.282, allocations: 0 / 418.8 MB, free: 5.531 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03397/0.316, allocations: 7.414 MB / 426.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.343/8.659, allocations: 0.625 kB / 426.3 MB, free: 14.28 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge_fmu --startTime=0 --stopTime=720 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > 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