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.001403/0.001403, allocations: 122.2 kB / 18.5 MB, free: 4.562 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.001726/0.001726, allocations: 215.1 kB / 21.45 MB, free: 1.617 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.445/1.445, allocations: 230.6 MB / 254.8 MB, free: 15.11 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 51.92 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1209, allocations: 53.32 MB / 427 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004636/0.1255, allocations: 3.002 MB / 430 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001478/0.127, allocations: 0.7517 MB / 430.8 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001664/0.1271, allocations: 4 kB / 430.8 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002572/0.1274, allocations: 63.38 kB / 430.8 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002792/0.1277, allocations: 111.1 kB / 430.9 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003608/0.128, allocations: 107.8 kB / 431 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004803/0.1285, allocations: 414.3 kB / 431.4 MB, free: 352 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003087/0.1288, allocations: 141.8 kB / 431.6 MB, free: 208 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001882/0.129, allocations: 163.4 kB / 431.7 MB, free: 44 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2447/0.3737, allocations: 181.5 kB / 431.9 MB, free: 7.887 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001468/0.3739, allocations: 40.28 kB / 432 MB, free: 7.887 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001843/0.3741, allocations: 55.23 kB / 432 MB, free: 7.887 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001753/0.3742, allocations: 109.6 kB / 432.1 MB, free: 7.887 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002126/0.3745, allocations: 208.1 kB / 432.3 MB, free: 7.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000638/0.3751, allocations: 0.4894 MB / 432.8 MB, free: 7.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.3751, allocations: 0.625 kB / 432.8 MB, free: 7.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.61e-07/0.3751, allocations: 1.125 kB / 432.8 MB, free: 7.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.3751, allocations: 0.5938 kB / 432.8 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.001596/0.3767, allocations: 0.8013 MB / 433.6 MB, free: 7.285 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.3767, allocations: 13.34 kB / 433.6 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.256e-05/0.3768, allocations: 11.64 kB / 433.6 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.165e-05/0.3768, allocations: 66.59 kB / 433.7 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.024e-05/0.3769, allocations: 45.72 kB / 433.7 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000469/0.3774, allocations: 345.7 kB / 434.1 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.412e-05/0.3774, allocations: 27.03 kB / 434.1 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.26e-05/0.3775, allocations: 34.62 kB / 434.1 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005507/0.378, allocations: 342.8 kB / 434.5 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.3781, allocations: 1.25 kB / 434.5 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.378e-05/0.3781, allocations: 13.75 kB / 434.5 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.3781, allocations: 11.62 kB / 434.5 MB, free: 6.926 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004152/0.3785, allocations: 237 kB / 434.7 MB, free: 6.926 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001719/0.3802, allocations: 1.301 MB / 436 MB, free: 6.297 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003931/0.3806, allocations: 172.5 kB / 436.2 MB, free: 6.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002622/0.3809, allocations: 115.1 kB / 436.3 MB, free: 6.262 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.564e-05/0.3809, allocations: 4.641 kB / 436.3 MB, free: 6.262 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.477e-05/0.3809, allocations: 34.25 kB / 436.4 MB, free: 6.223 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.383e-06/0.381, allocations: 1.781 kB / 436.4 MB, free: 6.223 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004974/0.3814, allocations: 229.5 kB / 436.6 MB, free: 6.176 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.904e-05/0.3815, allocations: 53.03 kB / 436.6 MB, free: 6.113 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003615/0.3818, allocations: 322.2 kB / 436.9 MB, free: 6.008 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.982e-05/0.3819, allocations: 31.38 kB / 437 MB, free: 5.977 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001225/0.382, allocations: 216.4 kB / 437.2 MB, free: 5.836 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.133e-05/0.382, allocations: 54.33 kB / 437.2 MB, free: 5.801 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.319e-05/0.3821, allocations: 50.3 kB / 437.3 MB, free: 5.777 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.007e-05/0.3822, allocations: 338.2 kB / 437.6 MB, free: 5.465 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001356/0.3823, allocations: 69.81 kB / 437.7 MB, free: 5.465 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001629/0.3825, allocations: 130.3 kB / 437.8 MB, free: 5.395 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002355/0.3827, allocations: 172 kB / 438 MB, free: 5.316 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.3827, allocations: 1.125 kB / 438 MB, free: 5.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004175/0.3831, allocations: 246.4 kB / 438.2 MB, free: 5.266 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.3832, allocations: 9.688 kB / 438.2 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-06/0.3832, allocations: 1.094 kB / 438.2 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.091e-05/0.3832, allocations: 6.719 kB / 438.2 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001917/0.3834, allocations: 46.52 kB / 438.3 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.169e-05/0.3834, allocations: 8.922 kB / 438.3 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004151/0.3838, allocations: 69.69 kB / 438.4 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.587e-05/0.3838, allocations: 12.31 kB / 438.4 MB, free: 5.246 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.0001528/0.384, allocations: 154.9 kB / 438.5 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.412e-05/0.384, allocations: 23.95 kB / 438.6 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004635/0.3845, allocations: 207.5 kB / 438.8 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.3845, allocations: 2.844 kB / 438.8 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.3845, allocations: 0 / 438.8 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.3845, allocations: 5.062 kB / 438.8 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009086/0.3854, allocations: 0.6296 MB / 439.4 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.3854, allocations: 1.578 kB / 439.4 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001651/0.3856, allocations: 27.7 kB / 439.4 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.3856, allocations: 1.062 kB / 439.4 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.082e-05/0.3856, allocations: 10.88 kB / 439.4 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.3856, allocations: 3.25 kB / 439.4 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3856, allocations: 0 / 439.4 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005078/0.3861, allocations: 383.2 kB / 439.8 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.253e-05/0.3862, allocations: 107.4 kB / 439.9 MB, free: 4.281 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.582e-05/0.3863, allocations: 3.828 kB / 439.9 MB, free: 4.281 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004402/0.3867, allocations: 58.3 kB / 440 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002232/0.3869, allocations: 72.64 kB / 440 MB, free: 4.266 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-05/0.3869, allocations: 14.53 kB / 440.1 MB, free: 4.258 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002733/0.3872, allocations: 232.3 kB / 440.3 MB, free: 4.125 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3872, allocations: 0 / 440.3 MB, free: 4.125 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004036/0.3876, allocations: 84.2 kB / 440.4 MB, free: 4.105 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.000785/0.3884, allocations: 0.923 MB / 441.3 MB, free: 3.336 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000363/0.3888, allocations: 178.4 kB / 441.5 MB, free: 3.289 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.3888, allocations: 8 kB / 441.5 MB, free: 3.281 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001845/0.389, allocations: 103 kB / 441.6 MB, free: 3.254 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004608/0.3894, allocations: 50.03 kB / 441.6 MB, free: 3.234 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004079/0.3935, allocations: 3.044 MB / 444.7 MB, free: 1.215 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002749/0.3938, allocations: 0.778 MB / 445.4 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001648/0.3939, allocations: 35.27 kB / 445.5 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000163/0.3941, allocations: 105.9 kB / 445.6 MB, free: 436 kB / 350.1 MB Notification: Performance of SimCode: time 1.142e-06/0.3941, allocations: 0 / 445.6 MB, free: 436 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02926/0.4234, allocations: 7.477 MB / 453.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.531/8.955, allocations: 10.92 kB / 453.1 MB, free: 14.88 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: 14.900525983015541]