Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00182/0.00182, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002211/0.002211, allocations: 211.3 kB / 23.72 MB, free: 4.531 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.471/1.471, allocations: 230.6 MB / 257.5 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002323/0.002323, allocations: 47.92 kB / 377.7 MB, free: 3.008 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2934, allocations: 53.37 MB / 431.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004538/0.2979, allocations: 2.793 MB / 433.9 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001506/0.2994, allocations: 0.7128 MB / 434.6 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002047/0.2996, allocations: 11.94 kB / 434.6 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002255/0.2999, allocations: 63.31 kB / 434.6 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002807/0.3001, allocations: 111.1 kB / 434.8 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003498/0.3005, allocations: 103.9 kB / 434.9 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000451/0.3009, allocations: 418.3 kB / 435.3 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002785/0.3012, allocations: 146.4 kB / 435.4 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001741/0.3014, allocations: 163.4 kB / 435.6 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002581/0.3017, allocations: 183.2 kB / 435.7 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.094e-05/0.3017, allocations: 40 kB / 435.8 MB, free: 1.926 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001292/0.3018, allocations: 59.94 kB / 435.8 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001763/0.302, allocations: 111.6 kB / 436 MB, free: 1.758 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001707/0.3022, allocations: 167.2 kB / 436.1 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006067/0.3028, allocations: 0.5019 MB / 436.6 MB, free: 1.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.3028, allocations: 8 kB / 436.6 MB, free: 1.082 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3028, allocations: 0 / 436.6 MB, free: 1.082 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.344e-05/0.3028, allocations: 0 / 436.6 MB, free: 1.082 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.001622/0.3044, allocations: 0.7195 MB / 437.3 MB, free: 336 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.3045, allocations: 8.031 kB / 437.4 MB, free: 328 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.243e-05/0.3046, allocations: 70.72 kB / 437.4 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.071e-05/0.3046, allocations: 40.7 kB / 437.5 MB, free: 208 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000551/0.3052, allocations: 283.4 kB / 437.7 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.639e-05/0.3052, allocations: 25.03 kB / 437.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.06e-05/0.3053, allocations: 28.38 kB / 437.8 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006176/0.3059, allocations: 402.9 kB / 438.2 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.3059, allocations: 0 / 438.2 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.015e-05/0.3059, allocations: 12 kB / 438.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.458e-05/0.306, allocations: 8 kB / 438.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004257/0.3064, allocations: 246.4 kB / 438.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00182/0.3082, allocations: 1.164 MB / 439.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000379/0.3086, allocations: 158.6 kB / 439.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002512/0.3088, allocations: 116.8 kB / 439.9 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.5e-05/0.3089, allocations: 4 kB / 439.9 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.399e-05/0.3089, allocations: 38.5 kB / 439.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.543e-06/0.3089, allocations: 0 / 439.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004934/0.3094, allocations: 237.6 kB / 440.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.173e-05/0.3094, allocations: 55.41 kB / 440.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003964/0.3098, allocations: 320.2 kB / 440.5 MB, free: 12.97 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.507e-05/0.3099, allocations: 29.7 kB / 440.5 MB, free: 12.94 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001595/0.31, allocations: 212.4 kB / 440.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.039e-05/0.3101, allocations: 59.52 kB / 440.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.068e-05/0.3102, allocations: 45.67 kB / 440.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.3103, allocations: 342.8 kB / 441.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001427/0.3105, allocations: 71.95 kB / 441.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001807/0.3107, allocations: 135.6 kB / 441.4 MB, free: 12.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000238/0.3109, allocations: 166.7 kB / 441.6 MB, free: 11.85 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3109, allocations: 0 / 441.6 MB, free: 11.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004048/0.3113, allocations: 241.2 kB / 441.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.3113, allocations: 8 kB / 441.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.3113, allocations: 4.25 kB / 441.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/0.3113, allocations: 7.938 kB / 441.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001995/0.3115, allocations: 47.92 kB / 441.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.276e-05/0.3116, allocations: 7.984 kB / 441.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000395/0.3119, allocations: 63.72 kB / 441.9 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.089e-05/0.312, allocations: 16 kB / 441.9 MB, free: 11.46 MB / 350.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.0001833/0.3122, allocations: 153.8 kB / 442.1 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.961e-05/0.3122, allocations: 23.86 kB / 442.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004105/0.3126, allocations: 201.9 kB / 442.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.3126, allocations: 3.938 kB / 442.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.3126, allocations: 0 / 442.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.3126, allocations: 3.984 kB / 442.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008372/0.3135, allocations: 0.5609 MB / 442.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.3135, allocations: 0 / 442.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001635/0.3136, allocations: 31.92 kB / 442.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.3137, allocations: 0 / 442.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.745e-05/0.3137, allocations: 8.031 kB / 442.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.3137, allocations: 0 / 442.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3137, allocations: 0 / 442.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000519/0.3142, allocations: 391.6 kB / 443.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.892e-05/0.3143, allocations: 27.81 kB / 443.3 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.219e-05/0.3143, allocations: 8 kB / 443.3 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003904/0.3147, allocations: 51.98 kB / 443.4 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001867/0.3149, allocations: 83.8 kB / 443.5 MB, free: 9.844 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.764e-05/0.3149, allocations: 8 kB / 443.5 MB, free: 9.836 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002571/0.3151, allocations: 235.1 kB / 443.7 MB, free: 9.605 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3151, allocations: 0 / 443.7 MB, free: 9.605 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003815/0.3155, allocations: 83.78 kB / 443.8 MB, free: 9.523 MB / 350.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.0008782/0.3164, allocations: 0.9226 MB / 444.7 MB, free: 8.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003704/0.3168, allocations: 176.1 kB / 444.9 MB, free: 8.398 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3168, allocations: 4.188 kB / 444.9 MB, free: 8.395 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001747/0.317, allocations: 99.88 kB / 445 MB, free: 8.297 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004695/0.3174, allocations: 63.41 kB / 445.1 MB, free: 8.234 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004123/0.3215, allocations: 3.046 MB / 448.1 MB, free: 5.055 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001765/0.3217, allocations: 172.8 kB / 448.3 MB, free: 4.871 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001476/0.3219, allocations: 30.3 kB / 448.3 MB, free: 4.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001917/0.3221, allocations: 111.4 kB / 448.4 MB, free: 4.73 MB / 350.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3221, allocations: 0 / 448.4 MB, free: 4.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05575/0.3778, allocations: 8.413 MB / 456.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.35, allocations: 5.438 kB / 456.8 MB, free: 12.5 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.390776421991177]