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.001257/0.001257, allocations: 123.9 kB / 17.79 MB, free: 5.266 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.001236/0.001236, allocations: 185.2 kB / 20.73 MB, free: 2.332 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.391/1.391, allocations: 225.6 MB / 249.1 MB, free: 3.613 MB / 190.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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001476, allocations: 43.92 kB / 365.6 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1065, allocations: 52.15 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007446/0.114, allocations: 5.821 MB / 423.6 MB, free: 6.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00438/0.1184, allocations: 2.595 MB / 426.2 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005387/0.1189, allocations: 19.94 kB / 426.2 MB, free: 4.145 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001729/0.1206, allocations: 0.77 MB / 427 MB, free: 3.371 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009702/0.1216, allocations: 0.5127 MB / 427.5 MB, free: 2.855 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00115/0.1228, allocations: 0.5137 MB / 428 MB, free: 2.348 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001794/0.1245, allocations: 1.574 MB / 429.6 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006151/0.1252, allocations: 438.5 kB / 430 MB, free: 320 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006698/0.1258, allocations: 0.6152 MB / 430.6 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000836/0.1267, allocations: 0.7666 MB / 431.4 MB, free: 14.92 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001774/0.1268, allocations: 136 kB / 431.5 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003555/0.1272, allocations: 207.8 kB / 431.7 MB, free: 14.59 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005552/0.1278, allocations: 0.6465 MB / 432.4 MB, free: 13.94 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008202/0.1286, allocations: 0.9127 MB / 433.3 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002468/0.131, allocations: 2.49 MB / 435.8 MB, free: 10.52 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.131, allocations: 4 kB / 435.8 MB, free: 10.52 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1311, allocations: 0 / 435.8 MB, free: 10.52 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.81e-05/0.1311, allocations: 0 / 435.8 MB, free: 10.52 MB / 366.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.004778/0.1359, allocations: 2.64 MB / 438.4 MB, free: 7.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.1359, allocations: 8.031 kB / 438.4 MB, free: 7.812 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001707/0.1361, allocations: 139.5 kB / 438.6 MB, free: 7.668 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003342/0.1364, allocations: 243.4 kB / 438.8 MB, free: 7.43 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002558/0.139, allocations: 1.548 MB / 440.3 MB, free: 5.836 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001101/0.1391, allocations: 96.02 kB / 440.4 MB, free: 5.738 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001262/0.1392, allocations: 84 kB / 440.5 MB, free: 5.656 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001809/0.141, allocations: 1.096 MB / 441.6 MB, free: 4.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.488e-05/0.141, allocations: 3.938 kB / 441.6 MB, free: 4.477 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.715e-05/0.1411, allocations: 48 kB / 441.7 MB, free: 4.43 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.642e-05/0.1411, allocations: 27.98 kB / 441.7 MB, free: 4.402 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001393/0.1425, allocations: 0.7143 MB / 442.4 MB, free: 3.688 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2088/0.3514, allocations: 4.589 MB / 447 MB, free: 28.35 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001144/0.3525, allocations: 0.9088 MB / 447.9 MB, free: 27.84 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006388/0.3532, allocations: 350.9 kB / 448.3 MB, free: 27.83 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.356e-05/0.3532, allocations: 9.719 kB / 448.3 MB, free: 27.83 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.98e-05/0.3532, allocations: 43.12 kB / 448.3 MB, free: 27.79 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.595e-06/0.3532, allocations: 0 / 448.3 MB, free: 27.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001737/0.355, allocations: 0.8353 MB / 449.1 MB, free: 27.75 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/0.3551, allocations: 423.8 kB / 449.6 MB, free: 27.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003812/0.3589, allocations: 2.737 MB / 452.3 MB, free: 27.03 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000103/0.359, allocations: 40.89 kB / 452.3 MB, free: 27 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008077/0.3598, allocations: 0.8888 MB / 453.2 MB, free: 26.75 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001421/0.36, allocations: 157.6 kB / 453.4 MB, free: 26.64 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002659/0.3602, allocations: 129.3 kB / 453.5 MB, free: 26.58 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.627e-05/0.3603, allocations: 332 kB / 453.8 MB, free: 26.26 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005649/0.3609, allocations: 255.1 kB / 454.1 MB, free: 26.19 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007046/0.3616, allocations: 0.5324 MB / 454.6 MB, free: 25.77 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001027/0.3626, allocations: 0.6171 MB / 455.2 MB, free: 25.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.77e-06/0.3626, allocations: 1.469 kB / 455.2 MB, free: 25.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001904/0.3645, allocations: 0.8567 MB / 456.1 MB, free: 25.09 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/0.3645, allocations: 10.81 kB / 456.1 MB, free: 25.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.3645, allocations: 5.875 kB / 456.1 MB, free: 25.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.076e-05/0.3646, allocations: 11.45 kB / 456.1 MB, free: 25.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005931/0.3652, allocations: 159.1 kB / 456.3 MB, free: 25.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.794e-05/0.3652, allocations: 17.09 kB / 456.3 MB, free: 25.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001018/0.3662, allocations: 166.9 kB / 456.4 MB, free: 25.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.464e-05/0.3662, allocations: 26.58 kB / 456.5 MB, free: 25.04 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.0008505/0.3671, allocations: 0.5576 MB / 457 MB, free: 24.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002343/0.3673, allocations: 195.3 kB / 457.2 MB, free: 24.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001364/0.3687, allocations: 0.6896 MB / 457.9 MB, free: 24.42 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.3687, allocations: 4.406 kB / 457.9 MB, free: 24.42 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.3687, allocations: 3.578 kB / 457.9 MB, free: 24.42 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.3687, allocations: 2.625 kB / 457.9 MB, free: 24.42 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003608/0.3723, allocations: 2.12 MB / 460 MB, free: 23.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.3723, allocations: 2.453 kB / 460 MB, free: 23.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004906/0.3728, allocations: 107.2 kB / 460.1 MB, free: 23.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.748e-06/0.3728, allocations: 4.016 kB / 460.1 MB, free: 23.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.879e-05/0.3729, allocations: 13.72 kB / 460.2 MB, free: 23.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.256e-06/0.3729, allocations: 11.69 kB / 460.2 MB, free: 23.49 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.3729, allocations: 1.188 kB / 460.2 MB, free: 23.49 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001722/0.3746, allocations: 1.046 MB / 461.2 MB, free: 22.98 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008144/0.3754, allocations: 416.2 kB / 461.6 MB, free: 22.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001734/0.3756, allocations: 20.78 kB / 461.6 MB, free: 22.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009534/0.3765, allocations: 144.9 kB / 461.8 MB, free: 22.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003349/0.3769, allocations: 146.9 kB / 461.9 MB, free: 22.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.957e-05/0.3769, allocations: 18.59 kB / 462 MB, free: 22.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002801/0.3797, allocations: 1.946 MB / 463.9 MB, free: 22.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3797, allocations: 0.9688 kB / 463.9 MB, free: 22.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001097/0.3808, allocations: 312.7 kB / 464.2 MB, free: 21.98 MB / 366.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.003529/0.3843, allocations: 1.985 MB / 466.2 MB, free: 20.88 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00126/0.3856, allocations: 0.5628 MB / 466.8 MB, free: 20.73 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/0.3856, allocations: 9.281 kB / 466.8 MB, free: 20.73 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006268/0.3862, allocations: 335 kB / 467.1 MB, free: 20.63 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001526/0.3878, allocations: 319.8 kB / 467.4 MB, free: 20.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02334/0.4111, allocations: 17.21 MB / 484.6 MB, free: 9.109 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009406/0.4121, allocations: 1.441 MB / 486.1 MB, free: 7.641 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008752/0.4129, allocations: 286.8 kB / 486.3 MB, free: 7.363 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000793/0.4137, allocations: 0.6984 MB / 487 MB, free: 6.664 MB / 366.1 MB Notification: Performance of SimCode: time 1.763e-06/0.4137, allocations: 0 / 487 MB, free: 6.664 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08163/0.4954, allocations: 38.99 MB / 0.5137 GB, free: 15.94 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.51, allocations: 12 kB / 0.5137 GB, free: 15.93 MB / 414.1 MB " [Timeout remaining time 648] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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 658] Reference file matches [Calling sys.exit(0), Time elapsed: 18.22564772190526]