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.001913/0.001913, allocations: 109.5 kB / 20.43 MB, free: 1.449 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.002474/0.002474, allocations: 188.4 kB / 23.72 MB, free: 4.684 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.406/1.406, allocations: 225.6 MB / 252.5 MB, free: 13.04 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.001766/0.001766, allocations: 47.92 kB / 370.4 MB, free: 9.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3337/0.3355, allocations: 52.18 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004686/0.3402, allocations: 3.018 MB / 425.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001546/0.3417, allocations: 0.7089 MB / 426.3 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001827/0.3419, allocations: 7.938 kB / 426.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002377/0.3422, allocations: 63.42 kB / 426.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003113/0.3425, allocations: 119 kB / 426.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003689/0.3428, allocations: 95.89 kB / 426.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005426/0.3434, allocations: 426.2 kB / 427 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000318/0.3437, allocations: 154.4 kB / 427.2 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001945/0.3439, allocations: 159.4 kB / 427.3 MB, free: 9.867 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002991/0.3442, allocations: 183.2 kB / 427.5 MB, free: 9.688 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.351e-05/0.3442, allocations: 40 kB / 427.6 MB, free: 9.648 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00014/0.3444, allocations: 59.92 kB / 427.6 MB, free: 9.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001795/0.3446, allocations: 115.6 kB / 427.7 MB, free: 9.477 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002066/0.3448, allocations: 211 kB / 427.9 MB, free: 9.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005854/0.3454, allocations: 0.4946 MB / 428.4 MB, free: 8.777 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3454, allocations: 0 / 428.4 MB, free: 8.777 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3454, allocations: 0 / 428.4 MB, free: 8.777 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.193e-06/0.3454, allocations: 0 / 428.4 MB, free: 8.777 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.001664/0.347, allocations: 0.7234 MB / 429.2 MB, free: 8.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.3471, allocations: 12.03 kB / 429.2 MB, free: 8.008 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.018e-05/0.3472, allocations: 62.73 kB / 429.2 MB, free: 7.938 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.124e-05/0.3472, allocations: 44.66 kB / 429.3 MB, free: 7.895 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005147/0.3478, allocations: 292.9 kB / 429.6 MB, free: 7.586 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.429e-05/0.3478, allocations: 32.95 kB / 429.6 MB, free: 7.555 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.842e-05/0.3478, allocations: 28.38 kB / 429.6 MB, free: 7.527 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006058/0.3484, allocations: 350 kB / 430 MB, free: 7.176 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.3485, allocations: 4 kB / 430 MB, free: 7.172 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.162e-05/0.3485, allocations: 8 kB / 430 MB, free: 7.164 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.3485, allocations: 8 kB / 430 MB, free: 7.156 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004391/0.3489, allocations: 242.4 kB / 430.2 MB, free: 6.918 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00195/0.3509, allocations: 1.253 MB / 431.5 MB, free: 5.586 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003655/0.3513, allocations: 166.5 kB / 431.6 MB, free: 5.414 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002561/0.3515, allocations: 112.8 kB / 431.7 MB, free: 5.301 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.768e-05/0.3515, allocations: 3.984 kB / 431.7 MB, free: 5.297 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.176e-05/0.3516, allocations: 42.56 kB / 431.8 MB, free: 5.246 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.503e-06/0.3516, allocations: 4 kB / 431.8 MB, free: 5.242 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004827/0.3521, allocations: 229.6 kB / 432 MB, free: 5.012 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.64e-05/0.3521, allocations: 55.41 kB / 432.1 MB, free: 4.945 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003686/0.3525, allocations: 320.2 kB / 432.4 MB, free: 4.625 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.67e-05/0.3525, allocations: 29.7 kB / 432.4 MB, free: 4.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001828/0.3527, allocations: 208.4 kB / 432.6 MB, free: 4.379 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.722e-05/0.3527, allocations: 59.48 kB / 432.7 MB, free: 4.32 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.655e-05/0.3528, allocations: 45.7 kB / 432.7 MB, free: 4.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001688/0.353, allocations: 334.8 kB / 433 MB, free: 3.934 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001393/0.3531, allocations: 79.95 kB / 433.1 MB, free: 3.855 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001794/0.3533, allocations: 131.6 kB / 433.2 MB, free: 3.699 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000241/0.3536, allocations: 169.9 kB / 433.4 MB, free: 3.508 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3536, allocations: 3.938 kB / 433.4 MB, free: 3.504 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003928/0.354, allocations: 249.1 kB / 433.7 MB, free: 3.254 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.354, allocations: 8 kB / 433.7 MB, free: 3.246 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.354, allocations: 3.984 kB / 433.7 MB, free: 3.242 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.905e-05/0.354, allocations: 4 kB / 433.7 MB, free: 3.238 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001932/0.3542, allocations: 47.92 kB / 433.7 MB, free: 3.191 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.243e-05/0.3542, allocations: 4 kB / 433.7 MB, free: 3.188 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003549/0.3546, allocations: 68.02 kB / 433.8 MB, free: 3.121 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.857e-05/0.3546, allocations: 12 kB / 433.8 MB, free: 3.109 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.0001675/0.3548, allocations: 161.6 kB / 434 MB, free: 2.941 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.559e-05/0.3548, allocations: 23.86 kB / 434 MB, free: 2.918 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004136/0.3552, allocations: 191.8 kB / 434.2 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.3552, allocations: 3.984 kB / 434.2 MB, free: 2.723 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.3552, allocations: 4 kB / 434.2 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.3552, allocations: 0 / 434.2 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008515/0.3561, allocations: 0.607 MB / 434.8 MB, free: 2.059 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3561, allocations: 0 / 434.8 MB, free: 2.059 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001595/0.3563, allocations: 39.91 kB / 434.8 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.3563, allocations: 0 / 434.8 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.834e-05/0.3563, allocations: 4 kB / 434.8 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.3563, allocations: 0 / 434.8 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.3563, allocations: 4.031 kB / 434.8 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005211/0.3568, allocations: 380 kB / 435.2 MB, free: 1.625 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.161e-05/0.3569, allocations: 35.81 kB / 435.2 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.014e-05/0.3569, allocations: 0 / 435.2 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003826/0.3573, allocations: 63.98 kB / 435.3 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001901/0.3575, allocations: 79.8 kB / 435.4 MB, free: 1.449 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.061e-05/0.3575, allocations: 11.94 kB / 435.4 MB, free: 1.438 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002607/0.3578, allocations: 231.1 kB / 435.6 MB, free: 1.211 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3578, allocations: 0 / 435.6 MB, free: 1.211 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003809/0.3581, allocations: 83.78 kB / 435.7 MB, free: 1.129 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.0008693/0.359, allocations: 0.92 MB / 436.6 MB, free: 180 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003437/0.3593, allocations: 171.8 kB / 436.8 MB, free: 8 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.3594, allocations: 0 / 436.8 MB, free: 8 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001922/0.3595, allocations: 112.3 kB / 436.9 MB, free: 15.9 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000409/0.36, allocations: 58.86 kB / 437 MB, free: 15.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004168/0.3641, allocations: 3.042 MB / 440 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004187/0.3645, allocations: 0.779 MB / 440.8 MB, free: 11.85 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000129/0.3647, allocations: 34.3 kB / 440.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001718/0.3648, allocations: 107.4 kB / 440.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3648, allocations: 0 / 440.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03951/0.4044, allocations: 7.669 MB / 448.6 MB, free: 4.227 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.78, allocations: 0 / 448.6 MB, free: 4.227 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 & /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 --stepSize=0.01 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 16.39274942013435]