Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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.001624/0.001624, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001405/0.001405, allocations: 203.9 kB / 23.73 MB, free: 4.379 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.441/1.441, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.BatteryDischargeCharge,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001507/0.001507, allocations: 51.92 kB / 377.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2792/0.2807, allocations: 53.37 MB / 431.1 MB, free: 6.621 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007908/0.2886, allocations: 5.211 MB / 436.3 MB, free: 1.395 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005021/0.2936, allocations: 2.592 MB / 438.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008213/0.2945, allocations: 31.81 kB / 438.9 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001882/0.2963, allocations: 0.7544 MB / 439.7 MB, free: 14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001404/0.2977, allocations: 0.5594 MB / 440.2 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001241/0.299, allocations: 0.5088 MB / 440.7 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00203/0.301, allocations: 1.598 MB / 442.3 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006548/0.3017, allocations: 411.1 kB / 442.7 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008286/0.3025, allocations: 0.6268 MB / 443.4 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001029/0.3035, allocations: 0.7705 MB / 444.1 MB, free: 9.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001875/0.3037, allocations: 132 kB / 444.3 MB, free: 9.371 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003888/0.3041, allocations: 219.9 kB / 444.5 MB, free: 9.156 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005896/0.3047, allocations: 0.6504 MB / 445.1 MB, free: 8.504 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007719/0.3055, allocations: 0.7225 MB / 445.9 MB, free: 7.777 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002598/0.3081, allocations: 2.521 MB / 448.4 MB, free: 5.246 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3081, allocations: 0 / 448.4 MB, free: 5.246 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3081, allocations: 4 kB / 448.4 MB, free: 5.242 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.829e-05/0.3081, allocations: 0 / 448.4 MB, free: 5.242 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: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.005396/0.3135, allocations: 2.58 MB / 451 MB, free: 2.617 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.3136, allocations: 12.03 kB / 451 MB, free: 2.605 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001844/0.3137, allocations: 139.5 kB / 451.1 MB, free: 2.461 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003862/0.3141, allocations: 235.4 kB / 451.3 MB, free: 2.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002738/0.3169, allocations: 1.495 MB / 452.8 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001516/0.317, allocations: 151.4 kB / 453 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001375/0.3171, allocations: 84 kB / 453.1 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002261/0.3194, allocations: 1.714 MB / 454.8 MB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.121e-05/0.3194, allocations: 4 kB / 454.8 MB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.272e-05/0.3195, allocations: 40 kB / 454.8 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.064e-05/0.3195, allocations: 23.98 kB / 454.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001398/0.3209, allocations: 0.7143 MB / 455.6 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007236/0.3282, allocations: 4.187 MB / 459.7 MB, free: 9.355 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001144/0.3293, allocations: 0.5105 MB / 460.3 MB, free: 8.832 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007714/0.3301, allocations: 361.9 kB / 460.6 MB, free: 8.477 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.659e-05/0.3301, allocations: 4 kB / 460.6 MB, free: 8.473 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.413e-05/0.3302, allocations: 50.48 kB / 460.7 MB, free: 8.414 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.064e-06/0.3302, allocations: 0 / 460.7 MB, free: 8.414 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.00187/0.3321, allocations: 0.8172 MB / 461.5 MB, free: 7.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002575/0.3323, allocations: 431.2 kB / 461.9 MB, free: 7.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003867/0.3362, allocations: 2.771 MB / 464.7 MB, free: 4.258 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.908e-05/0.3363, allocations: 37.7 kB / 464.7 MB, free: 4.215 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008516/0.3371, allocations: 0.8952 MB / 465.6 MB, free: 3.312 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001606/0.3373, allocations: 170.5 kB / 465.8 MB, free: 3.145 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002187/0.3375, allocations: 122.3 kB / 465.9 MB, free: 3.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.3377, allocations: 326 kB / 466.2 MB, free: 2.695 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005493/0.3382, allocations: 265.1 kB / 466.5 MB, free: 2.438 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001006/0.3392, allocations: 0.8839 MB / 467.3 MB, free: 1.348 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001118/0.3403, allocations: 0.6133 MB / 468 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.3403, allocations: 4 kB / 468 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001829/0.3422, allocations: 0.8577 MB / 468.8 MB, free: 15.79 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.3422, allocations: 8.625 kB / 468.8 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/0.3422, allocations: 8 kB / 468.8 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.491e-05/0.3422, allocations: 11.98 kB / 468.9 MB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006387/0.3429, allocations: 167.7 kB / 469 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.644e-05/0.3429, allocations: 11.98 kB / 469 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001028/0.3439, allocations: 159.4 kB / 469.2 MB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.928e-05/0.344, allocations: 28 kB / 469.2 MB, free: 15.4 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 (pulseSeries.on2,pulseSeries.on1,energy2.local_reset,battery2.limIntegrator.local_reset,energy1.local_reset,battery1.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * 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.0008975/0.3449, allocations: 0.5663 MB / 469.8 MB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000286/0.3451, allocations: 190.7 kB / 470 MB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001426/0.3466, allocations: 0.6963 MB / 470.7 MB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.225e-06/0.3466, allocations: 7.938 kB / 470.7 MB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.235e-05/0.3466, allocations: 0 / 470.7 MB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.824e-06/0.3466, allocations: 7.922 kB / 470.7 MB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003525/0.3501, allocations: 1.891 MB / 472.6 MB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.69e-06/0.3501, allocations: 4 kB / 472.6 MB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005255/0.3506, allocations: 107.9 kB / 472.7 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.805e-06/0.3507, allocations: 0 / 472.7 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.674e-05/0.3507, allocations: 19.98 kB / 472.7 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.3507, allocations: 0 / 472.7 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.975e-06/0.3507, allocations: 7.938 kB / 472.7 MB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001931/0.3527, allocations: 1.048 MB / 473.7 MB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009809/0.3536, allocations: 346.6 kB / 474.1 MB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001925/0.3538, allocations: 12 kB / 474.1 MB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001039/0.3549, allocations: 143.8 kB / 474.2 MB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003319/0.3552, allocations: 155.6 kB / 474.4 MB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.571e-05/0.3552, allocations: 20 kB / 474.4 MB, free: 10.08 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002911/0.3582, allocations: 1.964 MB / 476.4 MB, free: 8.098 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3582, allocations: 0 / 476.4 MB, free: 8.098 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00115/0.3593, allocations: 319.4 kB / 476.7 MB, free: 7.785 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (battery1.limIntegrator.y,energy1.y,battery2.limIntegrator.y,battery2.capacitor[1].v,battery2.capacitor[2].v,energy2.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 (44): * Single equations (assignments): 44 * 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.004155/0.3635, allocations: 2.022 MB / 478.7 MB, free: 5.945 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001314/0.3648, allocations: 0.5692 MB / 479.3 MB, free: 5.379 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.3648, allocations: 0 / 479.3 MB, free: 5.379 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006391/0.3654, allocations: 328.6 kB / 479.6 MB, free: 5.059 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001579/0.367, allocations: 327.1 kB / 479.9 MB, free: 4.742 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02752/0.3945, allocations: 17.25 MB / 497.2 MB, free: 3.109 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009818/0.3955, allocations: 0.8574 MB / 498 MB, free: 2.211 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008131/0.3963, allocations: 295 kB / 498.3 MB, free: 1.918 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009597/0.3973, allocations: 0.7023 MB / 499 MB, free: 1.215 MB / 398.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3973, allocations: 0 / 499 MB, free: 1.215 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0887/0.486, allocations: 41.97 MB / 0.5283 GB, free: 7.559 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.66/13.14, allocations: 6.641 kB / 0.5283 GB, free: 7.555 MB / 446.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge_fmu --startTime=0 --stopTime=3600 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 19.541307566018077]