Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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.001292/0.001292, allocations: 108.8 kB / 21.22 MB, free: 0.75 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.00132/0.00132, allocations: 191.7 kB / 24.5 MB, free: 4.02 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.376/1.376, allocations: 225.6 MB / 253.3 MB, free: 13.03 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.BatteryDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 43.94 kB / 371.2 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2666/0.268, allocations: 52.19 MB / 423.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007882/0.2759, allocations: 5.854 MB / 429.3 MB, free: 8.723 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004575/0.2805, allocations: 2.606 MB / 431.9 MB, free: 6.105 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006851/0.2812, allocations: 27.81 kB / 431.9 MB, free: 6.078 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001728/0.2829, allocations: 0.767 MB / 432.7 MB, free: 5.312 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001124/0.284, allocations: 0.5244 MB / 433.2 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001257/0.2853, allocations: 0.5145 MB / 433.7 MB, free: 4.273 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002226/0.2875, allocations: 1.59 MB / 435.3 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007601/0.2883, allocations: 403 kB / 435.7 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001014/0.2893, allocations: 0.6306 MB / 436.3 MB, free: 1.625 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009253/0.2902, allocations: 0.7666 MB / 437.1 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001866/0.2904, allocations: 136 kB / 437.2 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003945/0.2908, allocations: 208 kB / 437.4 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000616/0.2914, allocations: 0.6426 MB / 438.1 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00097/0.2924, allocations: 0.9243 MB / 439 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002817/0.2952, allocations: 2.49 MB / 441.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.81e-06/0.2952, allocations: 0 / 441.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.2952, allocations: 4 kB / 441.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.539e-05/0.2952, allocations: 0 / 441.5 MB, free: 12.44 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.005345/0.3006, allocations: 2.561 MB / 444 MB, free: 9.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/0.3006, allocations: 12.03 kB / 444.1 MB, free: 9.828 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.705e-05/0.3007, allocations: 22.19 kB / 444.1 MB, free: 9.805 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001681/0.3008, allocations: 139.5 kB / 444.2 MB, free: 9.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003821/0.3012, allocations: 243.4 kB / 444.4 MB, free: 9.422 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00262/0.3039, allocations: 1.479 MB / 445.9 MB, free: 7.918 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001739/0.304, allocations: 155.2 kB / 446.1 MB, free: 7.746 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001394/0.3042, allocations: 84 kB / 446.2 MB, free: 7.664 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001946/0.3061, allocations: 1.096 MB / 447.3 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.304e-05/0.3061, allocations: 8 kB / 447.3 MB, free: 6.484 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.153e-05/0.3062, allocations: 36 kB / 447.3 MB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.138e-05/0.3062, allocations: 20 kB / 447.3 MB, free: 6.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001383/0.3076, allocations: 0.7182 MB / 448 MB, free: 5.707 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007304/0.3149, allocations: 4.53 MB / 452.6 MB, free: 1.008 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001184/0.3161, allocations: 0.5363 MB / 453.1 MB, free: 476 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007484/0.3169, allocations: 354 kB / 453.5 MB, free: 116 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.907e-05/0.3169, allocations: 4 kB / 453.5 MB, free: 112 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.123e-05/0.317, allocations: 46.56 kB / 453.5 MB, free: 56 kB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.404e-06/0.317, allocations: 0 / 453.5 MB, free: 56 kB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.001957/0.3189, allocations: 0.8288 MB / 454.3 MB, free: 15.22 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002457/0.3192, allocations: 431.1 kB / 454.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003793/0.323, allocations: 2.743 MB / 457.5 MB, free: 11.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.683e-05/0.3231, allocations: 33.7 kB / 457.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008252/0.3239, allocations: 0.8873 MB / 458.4 MB, free: 10.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000177/0.3241, allocations: 170.5 kB / 458.6 MB, free: 10.81 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002318/0.3243, allocations: 126.3 kB / 458.7 MB, free: 10.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.3244, allocations: 326 kB / 459 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005609/0.325, allocations: 261.2 kB / 459.3 MB, free: 10.11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007969/0.3258, allocations: 0.5357 MB / 459.8 MB, free: 9.453 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001105/0.3269, allocations: 0.6133 MB / 460.4 MB, free: 8.762 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.059e-06/0.3269, allocations: 0 / 460.4 MB, free: 8.762 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001796/0.3287, allocations: 0.8619 MB / 461.3 MB, free: 7.891 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.3287, allocations: 8 kB / 461.3 MB, free: 7.883 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-05/0.3287, allocations: 8 kB / 461.3 MB, free: 7.875 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.476e-05/0.3288, allocations: 11.94 kB / 461.3 MB, free: 7.863 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005937/0.3294, allocations: 160.1 kB / 461.5 MB, free: 7.707 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.952e-05/0.3294, allocations: 15.92 kB / 461.5 MB, free: 7.691 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001006/0.3304, allocations: 159.4 kB / 461.6 MB, free: 7.535 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.794e-05/0.3304, allocations: 32 kB / 461.7 MB, free: 7.504 MB / 366.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.0008352/0.3313, allocations: 0.5483 MB / 462.2 MB, free: 6.945 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002638/0.3315, allocations: 190.8 kB / 462.4 MB, free: 6.758 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001414/0.333, allocations: 0.6922 MB / 463.1 MB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.316e-05/0.333, allocations: 11.94 kB / 463.1 MB, free: 6.043 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.333, allocations: 4 kB / 463.1 MB, free: 6.039 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.333, allocations: 3.984 kB / 463.1 MB, free: 6.035 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003518/0.3365, allocations: 2.078 MB / 465.2 MB, free: 3.891 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.3365, allocations: 0 / 465.2 MB, free: 3.891 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005054/0.337, allocations: 111.8 kB / 465.3 MB, free: 3.781 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.778e-06/0.337, allocations: 7.984 kB / 465.3 MB, free: 3.773 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.925e-05/0.3371, allocations: 8 kB / 465.3 MB, free: 3.766 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.168e-06/0.3371, allocations: 4 kB / 465.3 MB, free: 3.762 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3371, allocations: 96 / 465.3 MB, free: 3.762 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001916/0.339, allocations: 1.064 MB / 466.4 MB, free: 2.668 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007846/0.3398, allocations: 342.6 kB / 466.7 MB, free: 2.332 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001938/0.34, allocations: 12 kB / 466.7 MB, free: 2.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/0.341, allocations: 143.8 kB / 466.9 MB, free: 2.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000307/0.3413, allocations: 159.6 kB / 467 MB, free: 2.023 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.989e-05/0.3413, allocations: 19.98 kB / 467.1 MB, free: 2.004 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00268/0.344, allocations: 1.947 MB / 469 MB, free: 36 kB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.344, allocations: 0 / 469 MB, free: 36 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009492/0.345, allocations: 311.5 kB / 469.3 MB, free: 15.73 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.003818/0.3488, allocations: 1.988 MB / 471.3 MB, free: 13.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001256/0.3501, allocations: 0.5585 MB / 471.8 MB, free: 13.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.644e-06/0.3501, allocations: 4 kB / 471.9 MB, free: 13.33 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006623/0.3507, allocations: 335.8 kB / 472.2 MB, free: 13 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001529/0.3523, allocations: 327.1 kB / 472.5 MB, free: 12.69 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02527/0.3775, allocations: 17.21 MB / 489.7 MB, free: 11.09 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001222/0.3787, allocations: 1.436 MB / 491.1 MB, free: 9.625 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008428/0.3796, allocations: 299.1 kB / 491.4 MB, free: 9.328 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001005/0.3806, allocations: 0.6984 MB / 492.1 MB, free: 8.629 MB / 398.1 MB Notification: Performance of SimCode: time 1.463e-06/0.3806, allocations: 4 kB / 492.1 MB, free: 8.625 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08022/0.4608, allocations: 39.49 MB / 0.5192 GB, free: 1.43 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.1/14.56, allocations: 14.84 kB / 0.5192 GB, free: 1.418 MB / 430.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge_fmu --startTime=0 --stopTime=3600 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 656] Reference file matches [Calling sys.exit(0), Time elapsed: 24.22987381502753]