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.001345/0.001345, allocations: 112.6 kB / 18.49 MB, free: 4.562 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.001313/0.001313, allocations: 193 kB / 21.43 MB, free: 1.633 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.417/1.417, allocations: 225.6 MB / 249.8 MB, free: 3.707 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="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.001439/0.001439, allocations: 51.92 kB / 366.3 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09862/0.1001, allocations: 52.14 MB / 418.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007543/0.1076, allocations: 5.825 MB / 424.3 MB, free: 6.746 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004077/0.1117, allocations: 2.587 MB / 426.9 MB, free: 4.148 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004704/0.1121, allocations: 27.81 kB / 426.9 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001559/0.1137, allocations: 0.77 MB / 427.7 MB, free: 3.348 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009113/0.1146, allocations: 0.5205 MB / 428.2 MB, free: 2.824 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00101/0.1156, allocations: 0.4946 MB / 428.7 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001614/0.1172, allocations: 1.59 MB / 430.3 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006285/0.1179, allocations: 438.5 kB / 430.7 MB, free: 292 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007074/0.1186, allocations: 0.6229 MB / 431.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008406/0.1194, allocations: 0.7744 MB / 432.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001769/0.1196, allocations: 132 kB / 432.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003487/0.1199, allocations: 215.8 kB / 432.5 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005412/0.1205, allocations: 0.6271 MB / 433.1 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008017/0.1213, allocations: 0.9283 MB / 434 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0025/0.1238, allocations: 2.494 MB / 436.5 MB, free: 10.48 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.1238, allocations: 0 / 436.5 MB, free: 10.48 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1238, allocations: 0 / 436.5 MB, free: 10.48 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.258e-05/0.1238, allocations: 0 / 436.5 MB, free: 10.48 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.005095/0.1289, allocations: 2.636 MB / 439.1 MB, free: 7.781 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/0.129, allocations: 12.03 kB / 439.2 MB, free: 7.77 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.468e-05/0.129, allocations: 26.19 kB / 439.2 MB, free: 7.742 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001663/0.1292, allocations: 135.5 kB / 439.3 MB, free: 7.602 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003539/0.1295, allocations: 239.4 kB / 439.5 MB, free: 7.367 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002405/0.1319, allocations: 1.544 MB / 441.1 MB, free: 5.781 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001334/0.1321, allocations: 99.83 kB / 441.2 MB, free: 5.676 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001344/0.1322, allocations: 88 kB / 441.3 MB, free: 5.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001908/0.1341, allocations: 1.104 MB / 442.4 MB, free: 4.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.947e-05/0.1341, allocations: 0 / 442.4 MB, free: 4.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.89e-05/0.1342, allocations: 40 kB / 442.4 MB, free: 4.371 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.38e-05/0.1342, allocations: 27.92 kB / 442.4 MB, free: 4.344 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001361/0.1356, allocations: 0.7182 MB / 443.2 MB, free: 3.621 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1861/0.3217, allocations: 4.595 MB / 447.8 MB, free: 28.4 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001317/0.323, allocations: 0.9039 MB / 448.7 MB, free: 27.9 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000667/0.3237, allocations: 354.8 kB / 449 MB, free: 27.89 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.473e-05/0.3238, allocations: 10.09 kB / 449 MB, free: 27.89 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.75e-05/0.3238, allocations: 43.31 kB / 449.1 MB, free: 27.85 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.564e-06/0.3238, allocations: 0 / 449.1 MB, free: 27.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001674/0.3255, allocations: 0.8309 MB / 449.9 MB, free: 27.8 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.127e-05/0.3256, allocations: 419.5 kB / 450.3 MB, free: 27.3 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003467/0.329, allocations: 2.74 MB / 453 MB, free: 27.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.743e-05/0.3291, allocations: 34.3 kB / 453.1 MB, free: 27.05 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006942/0.3298, allocations: 0.8882 MB / 454 MB, free: 26.74 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001237/0.3299, allocations: 162.3 kB / 454.1 MB, free: 26.64 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002349/0.3301, allocations: 134.8 kB / 454.3 MB, free: 26.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.325e-05/0.3302, allocations: 327.3 kB / 454.6 MB, free: 26.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005404/0.3307, allocations: 258.4 kB / 454.8 MB, free: 26.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006329/0.3314, allocations: 0.5326 MB / 455.4 MB, free: 25.77 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009276/0.3323, allocations: 0.6153 MB / 456 MB, free: 25.4 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.3323, allocations: 5.281 kB / 456 MB, free: 25.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001573/0.3339, allocations: 0.8525 MB / 456.8 MB, free: 25.08 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.3339, allocations: 14.22 kB / 456.8 MB, free: 25.08 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.3339, allocations: 7.188 kB / 456.9 MB, free: 25.08 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.467e-05/0.3339, allocations: 11.8 kB / 456.9 MB, free: 25.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006068/0.3346, allocations: 156.8 kB / 457 MB, free: 25.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.631e-05/0.3346, allocations: 10.83 kB / 457 MB, free: 25.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001009/0.3356, allocations: 163.6 kB / 457.2 MB, free: 25.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.169e-05/0.3356, allocations: 26.61 kB / 457.2 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.0007284/0.3364, allocations: 0.5669 MB / 457.8 MB, free: 24.78 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002268/0.3366, allocations: 193.5 kB / 458 MB, free: 24.67 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001353/0.3379, allocations: 0.6938 MB / 458.7 MB, free: 24.42 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.3379, allocations: 4 kB / 458.7 MB, free: 24.42 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.3379, allocations: 0.6562 kB / 458.7 MB, free: 24.42 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.338, allocations: 3.266 kB / 458.7 MB, free: 24.42 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00297/0.3409, allocations: 2.121 MB / 460.8 MB, free: 23.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.3409, allocations: 2.938 kB / 460.8 MB, free: 23.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004854/0.3414, allocations: 103.9 kB / 460.9 MB, free: 23.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/0.3414, allocations: 2.25 kB / 460.9 MB, free: 23.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.105e-05/0.3415, allocations: 16.42 kB / 460.9 MB, free: 23.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.3415, allocations: 7.594 kB / 460.9 MB, free: 23.49 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.3415, allocations: 3.688 kB / 460.9 MB, free: 23.49 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001627/0.3431, allocations: 1.048 MB / 462 MB, free: 22.98 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005537/0.3437, allocations: 423.8 kB / 462.4 MB, free: 22.72 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001603/0.3438, allocations: 10.92 kB / 462.4 MB, free: 22.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009991/0.3448, allocations: 149.8 kB / 462.5 MB, free: 22.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003132/0.3451, allocations: 156.1 kB / 462.7 MB, free: 22.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.691e-05/0.3452, allocations: 13.31 kB / 462.7 MB, free: 22.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002468/0.3476, allocations: 1.95 MB / 464.7 MB, free: 22.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3476, allocations: 1.156 kB / 464.7 MB, free: 22.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008868/0.3485, allocations: 308.4 kB / 465 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.00337/0.3519, allocations: 1.982 MB / 466.9 MB, free: 20.87 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001171/0.3531, allocations: 0.5623 MB / 467.5 MB, free: 20.72 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.3531, allocations: 3.969 kB / 467.5 MB, free: 20.72 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005996/0.3537, allocations: 339 kB / 467.8 MB, free: 20.62 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001307/0.355, allocations: 324.1 kB / 468.2 MB, free: 20.49 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01997/0.3749, allocations: 17.21 MB / 485.4 MB, free: 9.004 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006874/0.3756, allocations: 1.433 MB / 486.8 MB, free: 7.543 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007034/0.3763, allocations: 291.3 kB / 487.1 MB, free: 7.262 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000672/0.377, allocations: 0.6984 MB / 487.8 MB, free: 6.562 MB / 366.1 MB Notification: Performance of SimCode: time 6.92e-07/0.377, allocations: 0 / 487.8 MB, free: 6.562 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0742/0.4512, allocations: 39.04 MB / 0.5145 GB, free: 15.81 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.63, allocations: 15.19 kB / 0.5145 GB, free: 15.8 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/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 657] Reference file matches [Calling sys.exit(0), Time elapsed: 21.12100676697446]