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.001746/0.001746, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.002126/0.002126, allocations: 208.3 kB / 20.75 MB, free: 2.273 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.523/1.523, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001482/0.001482, allocations: 51.94 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09828/0.09976, allocations: 53.33 MB / 426.3 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004746/0.1045, allocations: 2.991 MB / 429.3 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00169/0.1062, allocations: 0.7478 MB / 430 MB, free: 1.035 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003347/0.1065, allocations: 4 kB / 430 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003153/0.1068, allocations: 67.36 kB / 430.1 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004797/0.1073, allocations: 111.1 kB / 430.2 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004722/0.1078, allocations: 107.8 kB / 430.3 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006161/0.1084, allocations: 410.3 kB / 430.7 MB, free: 356 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002977/0.1087, allocations: 149.8 kB / 430.9 MB, free: 204 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002286/0.1089, allocations: 163.4 kB / 431 MB, free: 40 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1928/0.3017, allocations: 177.7 kB / 431.2 MB, free: 7.883 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001521/0.3019, allocations: 40.31 kB / 431.2 MB, free: 7.883 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001871/0.3021, allocations: 54.59 kB / 431.3 MB, free: 7.883 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001831/0.3023, allocations: 108.9 kB / 431.4 MB, free: 7.883 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000213/0.3025, allocations: 205.9 kB / 431.6 MB, free: 7.844 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006102/0.3031, allocations: 0.4916 MB / 432.1 MB, free: 7.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3031, allocations: 2.562 kB / 432.1 MB, free: 7.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3031, allocations: 0 / 432.1 MB, free: 7.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.605e-06/0.3031, allocations: 0 / 432.1 MB, free: 7.77 MB / 350.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.001542/0.3046, allocations: 0.8042 MB / 432.9 MB, free: 7.285 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.3047, allocations: 13.94 kB / 432.9 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.626e-05/0.3048, allocations: 67.38 kB / 433 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.266e-05/0.3048, allocations: 43.48 kB / 433 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004282/0.3053, allocations: 349.1 kB / 433.4 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.844e-05/0.3053, allocations: 23 kB / 433.4 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.815e-05/0.3053, allocations: 30.53 kB / 433.4 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004833/0.3058, allocations: 350.7 kB / 433.8 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.3058, allocations: 0.625 kB / 433.8 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.125e-05/0.3059, allocations: 13.41 kB / 433.8 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.041e-05/0.3059, allocations: 7.594 kB / 433.8 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003847/0.3063, allocations: 238.8 kB / 434 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00154/0.3078, allocations: 1.298 MB / 435.3 MB, free: 6.301 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003455/0.3081, allocations: 166.5 kB / 435.5 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002454/0.3084, allocations: 127.3 kB / 435.6 MB, free: 6.262 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.32e-05/0.3084, allocations: 2.969 kB / 435.6 MB, free: 6.262 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.648e-05/0.3084, allocations: 36.64 kB / 435.6 MB, free: 6.223 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 2.234e-06/0.3084, allocations: 4 kB / 435.6 MB, free: 6.219 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004686/0.3089, allocations: 227.3 kB / 435.9 MB, free: 6.172 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.895e-05/0.3089, allocations: 53.53 kB / 435.9 MB, free: 6.109 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003406/0.3093, allocations: 319.2 kB / 436.2 MB, free: 6.004 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.973e-05/0.3093, allocations: 30.77 kB / 436.3 MB, free: 5.973 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000102/0.3094, allocations: 211.7 kB / 436.5 MB, free: 5.832 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.056e-05/0.3094, allocations: 56.61 kB / 436.5 MB, free: 5.797 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.171e-05/0.3095, allocations: 49.03 kB / 436.6 MB, free: 5.777 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.556e-05/0.3096, allocations: 340.2 kB / 436.9 MB, free: 5.461 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001365/0.3097, allocations: 75.19 kB / 437 MB, free: 5.461 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001505/0.3099, allocations: 129.5 kB / 437.1 MB, free: 5.391 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001957/0.3101, allocations: 171.2 kB / 437.3 MB, free: 5.316 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.3101, allocations: 1.156 kB / 437.3 MB, free: 5.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003688/0.3104, allocations: 248.3 kB / 437.5 MB, free: 5.262 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.3105, allocations: 7.25 kB / 437.5 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.3105, allocations: 1.25 kB / 437.5 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.846e-05/0.3105, allocations: 5.953 kB / 437.5 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001799/0.3107, allocations: 44.88 kB / 437.6 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.317e-06/0.3107, allocations: 3.922 kB / 437.6 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004058/0.3111, allocations: 73.45 kB / 437.6 MB, free: 5.242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.834e-05/0.3111, allocations: 13.44 kB / 437.7 MB, free: 5.242 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.0001206/0.3112, allocations: 149.2 kB / 437.8 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.826e-05/0.3113, allocations: 28.95 kB / 437.8 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004046/0.3117, allocations: 204.9 kB / 438 MB, free: 5.066 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.3117, allocations: 6.594 kB / 438 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.3117, allocations: 4.75 kB / 438 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.3117, allocations: 1.766 kB / 438 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007201/0.3124, allocations: 0.6277 MB / 438.7 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3124, allocations: 1.062 kB / 438.7 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001581/0.3126, allocations: 27.05 kB / 438.7 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.3126, allocations: 1.547 kB / 438.7 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.849e-05/0.3126, allocations: 10.67 kB / 438.7 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.3126, allocations: 1.156 kB / 438.7 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.3126, allocations: 5.203 kB / 438.7 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004363/0.3131, allocations: 383.8 kB / 439.1 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.551e-05/0.3131, allocations: 103.8 kB / 439.2 MB, free: 4.262 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.243e-05/0.3132, allocations: 7.266 kB / 439.2 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004268/0.3136, allocations: 57.98 kB / 439.3 MB, free: 4.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001768/0.3138, allocations: 73.81 kB / 439.3 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.723e-05/0.3138, allocations: 5.672 kB / 439.3 MB, free: 4.242 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002166/0.314, allocations: 236.4 kB / 439.6 MB, free: 4.105 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.314, allocations: 0 / 439.6 MB, free: 4.105 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003622/0.3144, allocations: 88.59 kB / 439.7 MB, free: 4.082 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.0006173/0.315, allocations: 0.9319 MB / 440.6 MB, free: 3.312 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003582/0.3153, allocations: 176.5 kB / 440.8 MB, free: 3.266 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.3153, allocations: 0.7812 kB / 440.8 MB, free: 3.266 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000173/0.3155, allocations: 100.8 kB / 440.9 MB, free: 3.242 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004181/0.3159, allocations: 59.94 kB / 440.9 MB, free: 3.215 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003511/0.3194, allocations: 3.035 MB / 443.9 MB, free: 1.195 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002054/0.3196, allocations: 0.7749 MB / 444.7 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001405/0.3198, allocations: 32.77 kB / 444.8 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001533/0.3199, allocations: 114.7 kB / 444.9 MB, free: 416 kB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3199, allocations: 0 / 444.9 MB, free: 416 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03344/0.3534, allocations: 7.422 MB / 452.3 MB, free: 14.92 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.22/8.573, allocations: 12 kB / 452.3 MB, free: 14.91 MB / 366.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge_fmu --startTime=0 --stopTime=720 --stepSize=0.01 --timeout=50 --tolerance=1e-06 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.mat","/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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 13.179358891909942]