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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001268/0.001268, allocations: 107.5 kB / 20.44 MB, free: 1.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001371/0.001371, allocations: 184 kB / 23.7 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.451/1.451, allocations: 225.7 MB / 252.5 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002285/0.002285, allocations: 47.92 kB / 370.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.295/0.2973, allocations: 52.18 MB / 422.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004425/0.3017, allocations: 2.782 MB / 425.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001376/0.3031, allocations: 0.6855 MB / 426 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001628/0.3032, allocations: 8 kB / 426 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002139/0.3035, allocations: 67.36 kB / 426.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002684/0.3037, allocations: 111.1 kB / 426.2 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003288/0.3041, allocations: 103.8 kB / 426.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004348/0.3045, allocations: 422.2 kB / 426.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000276/0.3048, allocations: 138.4 kB / 426.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001731/0.3049, allocations: 163.4 kB / 427 MB, free: 9.934 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002722/0.3052, allocations: 167.2 kB / 427.2 MB, free: 9.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.61e-05/0.3053, allocations: 40 kB / 427.2 MB, free: 9.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000135/0.3054, allocations: 55.98 kB / 427.3 MB, free: 9.676 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001556/0.3056, allocations: 107.6 kB / 427.4 MB, free: 9.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001625/0.3057, allocations: 171.2 kB / 427.5 MB, free: 9.402 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005647/0.3063, allocations: 0.5019 MB / 428 MB, free: 8.898 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.3063, allocations: 4 kB / 428.1 MB, free: 8.895 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3063, allocations: 0 / 428.1 MB, free: 8.895 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.734e-06/0.3063, allocations: 0 / 428.1 MB, free: 8.895 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.001673/0.308, allocations: 0.7195 MB / 428.8 MB, free: 8.141 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.308, allocations: 8.031 kB / 428.8 MB, free: 8.133 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.223e-05/0.3081, allocations: 70.72 kB / 428.8 MB, free: 8.055 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.126e-05/0.3082, allocations: 40.7 kB / 428.9 MB, free: 8.016 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005219/0.3087, allocations: 292.9 kB / 429.2 MB, free: 7.707 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.083e-05/0.3087, allocations: 25.03 kB / 429.2 MB, free: 7.684 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.863e-05/0.3088, allocations: 28.38 kB / 429.2 MB, free: 7.656 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006432/0.3094, allocations: 401.4 kB / 429.6 MB, free: 7.242 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.3095, allocations: 0 / 429.6 MB, free: 7.242 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.314e-05/0.3095, allocations: 11.98 kB / 429.6 MB, free: 7.23 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.3095, allocations: 8 kB / 429.6 MB, free: 7.223 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004546/0.3099, allocations: 238.5 kB / 429.9 MB, free: 6.988 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001908/0.3119, allocations: 1.16 MB / 431 MB, free: 5.75 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004129/0.3123, allocations: 166.5 kB / 431.2 MB, free: 5.578 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000268/0.3125, allocations: 120.8 kB / 431.3 MB, free: 5.457 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.796e-05/0.3126, allocations: 0 / 431.3 MB, free: 5.457 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.984e-05/0.3126, allocations: 34.56 kB / 431.3 MB, free: 5.414 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.243e-06/0.3126, allocations: 0 / 431.3 MB, free: 5.414 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005179/0.3131, allocations: 229.6 kB / 431.6 MB, free: 5.184 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.512e-05/0.3132, allocations: 63.33 kB / 431.6 MB, free: 5.109 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003808/0.3136, allocations: 320.2 kB / 431.9 MB, free: 4.789 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.604e-05/0.3136, allocations: 25.7 kB / 432 MB, free: 4.758 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001679/0.3138, allocations: 212.4 kB / 432.2 MB, free: 4.543 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.55e-05/0.3138, allocations: 59.52 kB / 432.2 MB, free: 4.484 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.343e-05/0.3139, allocations: 49.66 kB / 432.3 MB, free: 4.43 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.3141, allocations: 342.8 kB / 432.6 MB, free: 4.086 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001336/0.3142, allocations: 67.95 kB / 432.7 MB, free: 4.02 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001846/0.3144, allocations: 131.7 kB / 432.8 MB, free: 3.863 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002564/0.3146, allocations: 178.8 kB / 433 MB, free: 3.664 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3146, allocations: 4 kB / 433 MB, free: 3.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003891/0.315, allocations: 241.2 kB / 433.2 MB, free: 3.418 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.3151, allocations: 8 kB / 433.2 MB, free: 3.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.3151, allocations: 0 / 433.2 MB, free: 3.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.3151, allocations: 4 kB / 433.2 MB, free: 3.406 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000181/0.3153, allocations: 47.91 kB / 433.3 MB, free: 3.359 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.3153, allocations: 8.25 kB / 433.3 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003924/0.3157, allocations: 71.7 kB / 433.4 MB, free: 3.281 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.737e-05/0.3157, allocations: 12 kB / 433.4 MB, free: 3.27 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.0001619/0.3158, allocations: 149.7 kB / 433.5 MB, free: 3.113 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.916e-05/0.3159, allocations: 27.84 kB / 433.5 MB, free: 3.086 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004058/0.3163, allocations: 203.6 kB / 433.7 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.3163, allocations: 0 / 433.7 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.3163, allocations: 11.98 kB / 433.8 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.3163, allocations: 3.984 kB / 433.8 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000813/0.3171, allocations: 0.5525 MB / 434.3 MB, free: 2.262 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.3171, allocations: 0 / 434.3 MB, free: 2.262 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001518/0.3173, allocations: 31.98 kB / 434.3 MB, free: 2.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.3173, allocations: 4 kB / 434.4 MB, free: 2.227 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.497e-05/0.3173, allocations: 0 / 434.4 MB, free: 2.227 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.3173, allocations: 3.984 kB / 434.4 MB, free: 2.223 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.3173, allocations: 4 kB / 434.4 MB, free: 2.219 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005081/0.3178, allocations: 376.5 kB / 434.7 MB, free: 1.832 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.241e-05/0.3179, allocations: 39.92 kB / 434.8 MB, free: 1.793 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.027e-05/0.3179, allocations: 0 / 434.8 MB, free: 1.793 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004006/0.3183, allocations: 59.91 kB / 434.8 MB, free: 1.734 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001954/0.3185, allocations: 75.88 kB / 434.9 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.019e-05/0.3185, allocations: 11.94 kB / 434.9 MB, free: 1.648 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002548/0.3188, allocations: 235.1 kB / 435.1 MB, free: 1.418 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3188, allocations: 4 kB / 435.1 MB, free: 1.414 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003667/0.3192, allocations: 83.78 kB / 435.2 MB, free: 1.332 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.0008571/0.32, allocations: 0.9161 MB / 436.1 MB, free: 392 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003535/0.3204, allocations: 179.7 kB / 436.3 MB, free: 212 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3204, allocations: 3.938 kB / 436.3 MB, free: 208 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001723/0.3206, allocations: 99.88 kB / 436.4 MB, free: 108 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004253/0.321, allocations: 61.5 kB / 436.5 MB, free: 44 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004159/0.3251, allocations: 3.048 MB / 439.5 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001772/0.3253, allocations: 168.7 kB / 439.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001621/0.3255, allocations: 38.28 kB / 439.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001813/0.3257, allocations: 111.4 kB / 439.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3257, allocations: 0 / 439.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03683/0.3625, allocations: 8.379 MB / 448.2 MB, free: 4.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.54, allocations: 3.375 kB / 448.2 MB, free: 4.34 MB / 350.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.csv --start-time 0 --stop-time 720 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.csv","/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.560838238801807]