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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001155/0.001155, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001218/0.001218, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9166/0.9166, allocations: 177 MB / 204.1 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.273e-06/1.273e-06, allocations: 0 / 324.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.261e-05/1.389e-05, allocations: 2.984 kB / 324.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.00266/0.002674, allocations: 2.8 MB / 327.3 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008189/0.003493, allocations: 0.7089 MB / 328 MB, free: 12.33 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001196/0.003612, allocations: 11.94 kB / 328 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001583/0.003771, allocations: 55.44 kB / 328.1 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001901/0.003961, allocations: 126.9 kB / 328.2 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002665/0.004227, allocations: 103.9 kB / 328.3 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005566/0.004784, allocations: 434 kB / 328.7 MB, free: 11.61 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002034/0.004987, allocations: 134.4 kB / 328.9 MB, free: 11.48 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001587/0.005146, allocations: 239.5 kB / 329.1 MB, free: 11.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001614/0.005307, allocations: 135.6 kB / 329.2 MB, free: 11.12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.73e-05/0.005345, allocations: 40 kB / 329.3 MB, free: 11.08 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.545e-05/0.00543, allocations: 59.92 kB / 329.3 MB, free: 11.02 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001039/0.005534, allocations: 115.6 kB / 329.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.618e-05/0.00562, allocations: 143.6 kB / 329.6 MB, free: 10.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003518/0.005972, allocations: 0.4945 MB / 330.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.483e-06/0.005974, allocations: 0 / 330.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.005974, allocations: 3.938 kB / 330.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.481e-06/0.00598, allocations: 0 / 330.1 MB, free: 10.27 MB / 298.7 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.0009258/0.006906, allocations: 0.7234 MB / 330.8 MB, free: 9.508 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.006939, allocations: 15.98 kB / 330.8 MB, free: 9.492 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.195e-05/0.006991, allocations: 66.72 kB / 330.9 MB, free: 9.418 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.077e-05/0.007042, allocations: 40.7 kB / 330.9 MB, free: 9.379 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003196/0.007362, allocations: 292.5 kB / 331.2 MB, free: 9.07 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.896e-05/0.007381, allocations: 29.02 kB / 331.2 MB, free: 9.043 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.649e-05/0.007417, allocations: 28.38 kB / 331.3 MB, free: 9.016 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003743/0.007792, allocations: 393.9 kB / 331.6 MB, free: 8.605 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.968e-06/0.007801, allocations: 4.125 kB / 331.6 MB, free: 8.602 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.36e-05/0.007825, allocations: 20.12 kB / 331.7 MB, free: 8.582 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.007832, allocations: 8 kB / 331.7 MB, free: 8.574 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002736/0.008106, allocations: 234.5 kB / 331.9 MB, free: 8.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001118/0.009224, allocations: 1.153 MB / 333.1 MB, free: 7.109 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002578/0.009482, allocations: 158.5 kB / 333.2 MB, free: 6.945 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001709/0.009653, allocations: 120.7 kB / 333.3 MB, free: 6.824 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.645e-05/0.009679, allocations: 4 kB / 333.3 MB, free: 6.82 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.987e-05/0.009699, allocations: 42.5 kB / 333.4 MB, free: 6.77 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.263e-06/0.0097, allocations: 0 / 333.4 MB, free: 6.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003137/0.01001, allocations: 236.7 kB / 333.6 MB, free: 6.535 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.586e-05/0.01004, allocations: 55.34 kB / 333.7 MB, free: 6.469 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002325/0.01027, allocations: 336 kB / 334 MB, free: 6.137 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.975e-05/0.01029, allocations: 29.7 kB / 334 MB, free: 6.102 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.259e-05/0.01038, allocations: 212.4 kB / 334.2 MB, free: 5.887 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.087e-05/0.01042, allocations: 51.55 kB / 334.3 MB, free: 5.836 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.32e-05/0.01047, allocations: 49.7 kB / 334.3 MB, free: 5.781 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.862e-05/0.01055, allocations: 330.8 kB / 334.6 MB, free: 5.449 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.828e-05/0.01064, allocations: 79.95 kB / 334.7 MB, free: 5.371 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001115/0.01075, allocations: 131.7 kB / 334.8 MB, free: 5.215 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001441/0.01089, allocations: 162.5 kB / 335 MB, free: 5.031 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.01089, allocations: 4 kB / 335 MB, free: 5.027 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002378/0.01113, allocations: 253.1 kB / 335.3 MB, free: 4.773 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.01114, allocations: 7.938 kB / 335.3 MB, free: 4.766 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.01115, allocations: 4 kB / 335.3 MB, free: 4.762 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.01116, allocations: 4 kB / 335.3 MB, free: 4.758 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.784e-05/0.01126, allocations: 39.92 kB / 335.3 MB, free: 4.719 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.01127, allocations: 4 kB / 335.3 MB, free: 4.715 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001771/0.01144, allocations: 72.06 kB / 335.4 MB, free: 4.645 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.866e-05/0.01146, allocations: 11.98 kB / 335.4 MB, free: 4.633 MB / 298.7 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 9.984e-05/0.01156, allocations: 153.8 kB / 335.5 MB, free: 4.473 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002611/0.01182, allocations: 31.75 kB / 335.6 MB, free: 4.441 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002376/0.01206, allocations: 203.6 kB / 335.8 MB, free: 4.234 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.01206, allocations: 4 kB / 335.8 MB, free: 4.23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.01207, allocations: 0 / 335.8 MB, free: 4.23 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.01207, allocations: 0 / 335.8 MB, free: 4.23 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004611/0.01253, allocations: 0.557 MB / 336.3 MB, free: 3.617 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.01253, allocations: 0 / 336.3 MB, free: 3.617 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.491e-05/0.01262, allocations: 31.97 kB / 336.4 MB, free: 3.586 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.01262, allocations: 0 / 336.4 MB, free: 3.586 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.077e-05/0.01263, allocations: 4 kB / 336.4 MB, free: 3.582 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.325e-06/0.01263, allocations: 4 kB / 336.4 MB, free: 3.578 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.01263, allocations: 0 / 336.4 MB, free: 3.578 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003091/0.01294, allocations: 387.1 kB / 336.8 MB, free: 3.184 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.482e-05/0.01298, allocations: 31.81 kB / 336.8 MB, free: 3.152 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.349e-05/0.013, allocations: 8.094 kB / 336.8 MB, free: 3.145 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001871/0.01319, allocations: 55.92 kB / 336.9 MB, free: 3.09 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001163/0.0133, allocations: 79.86 kB / 336.9 MB, free: 3.012 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.027e-06/0.01331, allocations: 7.938 kB / 336.9 MB, free: 3.004 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001479/0.01346, allocations: 231.1 kB / 337.2 MB, free: 2.777 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01346, allocations: 0 / 337.2 MB, free: 2.777 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002191/0.01368, allocations: 83.84 kB / 337.2 MB, free: 2.695 MB / 298.7 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.0005155/0.01419, allocations: 0.9277 MB / 338.2 MB, free: 1.738 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004068/0.0146, allocations: 171.7 kB / 338.3 MB, free: 1.57 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.01461, allocations: 0 / 338.3 MB, free: 1.57 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000139/0.01475, allocations: 107.1 kB / 338.4 MB, free: 1.469 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004585/0.0152, allocations: 51.77 kB / 338.5 MB, free: 1.418 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003153/0.01836, allocations: 3.009 MB / 341.5 MB, free: 14.27 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001218/0.01848, allocations: 172.8 kB / 341.7 MB, free: 14.08 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001153/0.01859, allocations: 34.28 kB / 341.7 MB, free: 14.05 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001357/0.01873, allocations: 108.5 kB / 341.8 MB, free: 13.94 MB / 314.7 MB Notification: Performance of SimCode: time 1.252e-06/0.01873, allocations: 0 / 341.8 MB, free: 13.94 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02303/0.04176, allocations: 8.483 MB / 350.3 MB, free: 5.602 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.093/7.135, allocations: 12 kB / 350.3 MB, free: 5.59 MB / 314.7 MB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,energy.y,superCap.capacitor.v Variables in the result:time,energy.y,superCap.capacitor.v [Calling sys.exit(0), Time elapsed: 10.293158849701285]