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.001838/0.001838, allocations: 123.4 kB / 17.79 MB, free: 5.266 MB / 14.72 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.002161/0.002161, allocations: 207.5 kB / 20.75 MB, free: 2.312 MB / 14.72 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 1.519/1.519, allocations: 230.4 MB / 254 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001909/0.001909, allocations: 67.84 kB / 373 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1261, allocations: 53.38 MB / 426.3 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.005/0.1311, allocations: 2.991 MB / 429.3 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001479/0.1326, allocations: 0.7478 MB / 430.1 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001605/0.1328, allocations: 7.938 kB / 430.1 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000228/0.133, allocations: 59.44 kB / 430.2 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002659/0.1333, allocations: 111.1 kB / 430.3 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003444/0.1336, allocations: 107.8 kB / 430.4 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005425/0.1342, allocations: 418.3 kB / 430.8 MB, free: 160 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002959/0.1345, allocations: 145.8 kB / 430.9 MB, free: 12 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.249/0.3835, allocations: 156.1 kB / 431.1 MB, free: 7.762 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003827/0.3838, allocations: 188.1 kB / 431.3 MB, free: 7.723 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9e-05/0.3839, allocations: 40.03 kB / 431.3 MB, free: 7.723 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001902/0.3841, allocations: 53.67 kB / 431.3 MB, free: 7.723 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002012/0.3843, allocations: 109.4 kB / 431.5 MB, free: 7.711 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002478/0.3846, allocations: 205.5 kB / 431.7 MB, free: 7.656 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007756/0.3853, allocations: 0.4979 MB / 432.2 MB, free: 7.582 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.3854, allocations: 0.875 kB / 432.2 MB, free: 7.582 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3854, allocations: 0 / 432.2 MB, free: 7.582 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.3854, allocations: 0 / 432.2 MB, free: 7.582 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.001714/0.3871, allocations: 0.8008 MB / 433 MB, free: 7.098 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.021e-05/0.3871, allocations: 9.344 kB / 433 MB, free: 7.098 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.552e-05/0.3872, allocations: 67.78 kB / 433 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.765e-05/0.3873, allocations: 42.39 kB / 433.1 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004558/0.3878, allocations: 344.9 kB / 433.4 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.132e-05/0.3878, allocations: 23.59 kB / 433.4 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.276e-05/0.3879, allocations: 32.16 kB / 433.5 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005445/0.3884, allocations: 351 kB / 433.8 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.3884, allocations: 4.75 kB / 433.8 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.296e-05/0.3885, allocations: 9.812 kB / 433.8 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.13e-05/0.3885, allocations: 7.562 kB / 433.8 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004102/0.3889, allocations: 240.3 kB / 434.1 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001839/0.3907, allocations: 1.3 MB / 435.4 MB, free: 6.109 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003856/0.3911, allocations: 160.7 kB / 435.5 MB, free: 6.086 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002927/0.3914, allocations: 124.5 kB / 435.6 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.249e-05/0.3914, allocations: 7.422 kB / 435.6 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.163e-05/0.3915, allocations: 33.06 kB / 435.7 MB, free: 6.031 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 2.044e-06/0.3915, allocations: 0.6562 kB / 435.7 MB, free: 6.031 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.000524/0.392, allocations: 230.4 kB / 435.9 MB, free: 5.984 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.799e-05/0.392, allocations: 53.66 kB / 436 MB, free: 5.922 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003918/0.3924, allocations: 320.6 kB / 436.3 MB, free: 5.816 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.115e-05/0.3924, allocations: 30.77 kB / 436.3 MB, free: 5.785 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001233/0.3926, allocations: 213.7 kB / 436.5 MB, free: 5.648 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.567e-05/0.3926, allocations: 57.12 kB / 436.6 MB, free: 5.613 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.899e-05/0.3927, allocations: 49.83 kB / 436.6 MB, free: 5.594 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.309e-05/0.3928, allocations: 337 kB / 436.9 MB, free: 5.281 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001329/0.3929, allocations: 70.97 kB / 437 MB, free: 5.281 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001699/0.3931, allocations: 139.8 kB / 437.1 MB, free: 5.207 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002018/0.3933, allocations: 167.7 kB / 437.3 MB, free: 5.133 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.3933, allocations: 0 / 437.3 MB, free: 5.133 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003727/0.3937, allocations: 248.8 kB / 437.6 MB, free: 5.078 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.3937, allocations: 5.125 kB / 437.6 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.3937, allocations: 3.5 kB / 437.6 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.3937, allocations: 4.219 kB / 437.6 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001849/0.3939, allocations: 46.84 kB / 437.6 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.3939, allocations: 4.922 kB / 437.6 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004272/0.3943, allocations: 68.75 kB / 437.7 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.082e-05/0.3944, allocations: 16.7 kB / 437.7 MB, free: 5.059 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.0001336/0.3945, allocations: 148.8 kB / 437.8 MB, free: 4.945 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.901e-05/0.3946, allocations: 32.88 kB / 437.9 MB, free: 4.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004068/0.395, allocations: 205.3 kB / 438.1 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.395, allocations: 1.312 kB / 438.1 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.395, allocations: 1.984 kB / 438.1 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.395, allocations: 0.6094 kB / 438.1 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008037/0.3958, allocations: 0.6291 MB / 438.7 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.3958, allocations: 1.094 kB / 438.7 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001628/0.3959, allocations: 27.14 kB / 438.7 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.3959, allocations: 1.438 kB / 438.7 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.891e-05/0.396, allocations: 6.781 kB / 438.7 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.396, allocations: 5.406 kB / 438.8 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.396, allocations: 7.906 kB / 438.8 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004859/0.3965, allocations: 385.9 kB / 439.1 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.359e-05/0.3965, allocations: 103.9 kB / 439.2 MB, free: 4.074 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.254e-05/0.3966, allocations: 5.5 kB / 439.2 MB, free: 4.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004573/0.397, allocations: 55.45 kB / 439.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002188/0.3972, allocations: 73.25 kB / 439.4 MB, free: 4.059 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.907e-05/0.3973, allocations: 10 kB / 439.4 MB, free: 4.055 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002348/0.3975, allocations: 240.4 kB / 439.6 MB, free: 3.918 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3975, allocations: 0 / 439.6 MB, free: 3.918 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003845/0.3979, allocations: 88.12 kB / 439.7 MB, free: 3.895 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.0006675/0.3985, allocations: 0.923 MB / 440.6 MB, free: 3.125 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003527/0.3989, allocations: 174.2 kB / 440.8 MB, free: 3.078 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.3989, allocations: 1.469 kB / 440.8 MB, free: 3.078 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001761/0.3991, allocations: 98.8 kB / 440.9 MB, free: 3.055 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004232/0.3995, allocations: 58.88 kB / 440.9 MB, free: 3.027 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004025/0.4035, allocations: 3.036 MB / 444 MB, free: 1.008 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002506/0.4038, allocations: 0.7739 MB / 444.8 MB, free: 316 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001723/0.4039, allocations: 35.94 kB / 444.8 MB, free: 312 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001848/0.4041, allocations: 110 kB / 444.9 MB, free: 228 kB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4041, allocations: 0.9688 kB / 444.9 MB, free: 228 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0367/0.4408, allocations: 7.428 MB / 452.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.469/8.91, allocations: 19.64 kB / 452.3 MB, free: 14.69 MB / 366.1 MB " [Timeout remaining time 651] (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/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_trunk_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: 12.951149974018335]