Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.0008569/0.0008569, allocations: 83.7 kB / 20.67 MB, free: 3.883 MB / 18.57 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.0008503/0.0008503, allocations: 173.3 kB / 23.95 MB, free: 0.6016 MB / 18.57 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 0.8793/0.8793, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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.CCCVcharging,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.254e-06/2.254e-06, allocations: 0 / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.312e-05/2.538e-05, allocations: 2.281 kB / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.004856/0.004882, allocations: 3.724 MB / 328.3 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002931/0.007813, allocations: 1.94 MB / 330.2 MB, free: 10.26 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000289/0.008102, allocations: 15.94 kB / 330.2 MB, free: 10.24 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001101/0.009203, allocations: 0.5717 MB / 330.8 MB, free: 9.668 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005887/0.009792, allocations: 409.8 kB / 331.2 MB, free: 9.266 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005812/0.01037, allocations: 282.8 kB / 331.5 MB, free: 8.992 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009632/0.01134, allocations: 1.013 MB / 332.5 MB, free: 7.977 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003241/0.01166, allocations: 217 kB / 332.7 MB, free: 7.762 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005496/0.01221, allocations: 0.5496 MB / 333.2 MB, free: 7.211 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004387/0.01265, allocations: 443 kB / 333.7 MB, free: 6.777 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.908e-05/0.01273, allocations: 80 kB / 333.8 MB, free: 6.699 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001979/0.01293, allocations: 135.9 kB / 333.9 MB, free: 6.566 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002588/0.01318, allocations: 486.6 kB / 334.4 MB, free: 6.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002932/0.01348, allocations: 382.9 kB / 334.7 MB, free: 5.715 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001395/0.01487, allocations: 1.733 MB / 336.5 MB, free: 3.977 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.01488, allocations: 0 / 336.5 MB, free: 3.977 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.01488, allocations: 0 / 336.5 MB, free: 3.977 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.966e-05/0.01493, allocations: 4 kB / 336.5 MB, free: 3.973 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.002395/0.01733, allocations: 1.783 MB / 338.3 MB, free: 2.148 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.01737, allocations: 8.031 kB / 338.3 MB, free: 2.141 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.619e-05/0.01746, allocations: 98.7 kB / 338.4 MB, free: 2.035 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002167/0.01767, allocations: 167.9 kB / 338.5 MB, free: 1.871 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001513/0.01918, allocations: 1.141 MB / 339.7 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001219/0.01931, allocations: 170.1 kB / 339.8 MB, free: 0.4961 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.753e-05/0.01936, allocations: 52.33 kB / 339.9 MB, free: 456 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009115/0.02028, allocations: 1.023 MB / 340.9 MB, free: 15.29 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.02029, allocations: 4 kB / 340.9 MB, free: 15.29 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.557e-05/0.02032, allocations: 24 kB / 340.9 MB, free: 15.27 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.02033, allocations: 12 kB / 340.9 MB, free: 15.25 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005304/0.02086, allocations: 435.6 kB / 341.4 MB, free: 14.82 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002727/0.02359, allocations: 2.595 MB / 344 MB, free: 12.13 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006056/0.0242, allocations: 406.4 kB / 344.4 MB, free: 11.73 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003987/0.0246, allocations: 293.6 kB / 344.6 MB, free: 11.44 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.158e-05/0.02462, allocations: 4 kB / 344.7 MB, free: 11.43 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.296e-05/0.02465, allocations: 42.55 kB / 344.7 MB, free: 11.38 MB / 314.7 MB Notification: Performance of pre-optimization done (n=30): time 1.774e-06/0.02465, allocations: 0 / 344.7 MB, free: 11.38 MB / 314.7 MB Notification: Performance of matching and sorting (n=30): time 0.001098/0.02575, allocations: 0.7008 MB / 345.4 MB, free: 10.67 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.988e-05/0.02584, allocations: 261 kB / 345.7 MB, free: 10.36 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00178/0.02762, allocations: 2.25 MB / 347.9 MB, free: 8.094 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.12e-05/0.02765, allocations: 33.7 kB / 347.9 MB, free: 8.055 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000366/0.02802, allocations: 0.6474 MB / 348.6 MB, free: 7.398 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.999e-05/0.02808, allocations: 111.1 kB / 348.7 MB, free: 7.289 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.249e-05/0.02817, allocations: 78.06 kB / 348.8 MB, free: 7.203 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.578e-05/0.02824, allocations: 321.9 kB / 349.1 MB, free: 6.883 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001978/0.02844, allocations: 164.6 kB / 349.2 MB, free: 6.723 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003193/0.02876, allocations: 0.498 MB / 349.7 MB, free: 6.121 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004193/0.02918, allocations: 400.7 kB / 350.1 MB, free: 5.699 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.02918, allocations: 3.938 kB / 350.1 MB, free: 5.695 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007944/0.02998, allocations: 0.6528 MB / 350.8 MB, free: 5.031 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.03, allocations: 4 kB / 350.8 MB, free: 5.027 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.914e-06/0.03, allocations: 4 kB / 350.8 MB, free: 5.023 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002148/0.03022, allocations: 64.81 kB / 350.9 MB, free: 4.957 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001986/0.03042, allocations: 95.95 kB / 351 MB, free: 4.863 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00116/0.03158, allocations: 1.652 MB / 352.6 MB, free: 3.102 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002606/0.03184, allocations: 63.75 kB / 352.7 MB, free: 3.039 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.96e-05/0.03186, allocations: 12 kB / 352.7 MB, free: 3.027 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0005221/0.03238, allocations: 485.6 kB / 353.2 MB, free: 2.543 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000109/0.03249, allocations: 143.1 kB / 353.3 MB, free: 2.402 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001153/0.0326, allocations: 157.6 kB / 353.4 MB, free: 2.246 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.165e-06/0.03261, allocations: 4 kB / 353.4 MB, free: 2.242 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.03261, allocations: 3.938 kB / 353.5 MB, free: 2.238 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.03262, allocations: 3.984 kB / 353.5 MB, free: 2.234 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00153/0.03415, allocations: 1.497 MB / 355 MB, free: 0.6758 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.03415, allocations: 0 / 355 MB, free: 0.6758 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001718/0.03432, allocations: 71.89 kB / 355 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001272/0.03445, allocations: 64.94 kB / 355.1 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.92e-05/0.03447, allocations: 4 kB / 355.1 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001289/0.03576, allocations: 1.617 MB / 356.7 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.03576, allocations: 3.938 kB / 356.7 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00101/0.03677, allocations: 0.804 MB / 357.5 MB, free: 13.97 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003831/0.03715, allocations: 255 kB / 357.8 MB, free: 13.72 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.569e-05/0.03723, allocations: 19.92 kB / 357.8 MB, free: 13.7 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002496/0.03748, allocations: 43.95 kB / 357.8 MB, free: 13.66 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.563e-05/0.03756, allocations: 31.89 kB / 357.9 MB, free: 13.62 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.582e-05/0.03758, allocations: 16 kB / 357.9 MB, free: 13.61 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001412/0.03899, allocations: 1.608 MB / 359.5 MB, free: 12 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-08/0.03899, allocations: 3.938 kB / 359.5 MB, free: 12 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004966/0.03949, allocations: 203.7 kB / 359.7 MB, free: 11.8 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (battery.limIntegrator.y,battery.capacitor[1].v,battery.capacitor[2].v,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001781/0.04127, allocations: 1.731 MB / 361.4 MB, free: 10.25 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006737/0.04194, allocations: 490.8 kB / 361.9 MB, free: 9.754 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.04195, allocations: 0 / 361.9 MB, free: 9.754 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002908/0.04224, allocations: 306.8 kB / 362.2 MB, free: 9.441 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005937/0.04283, allocations: 223.2 kB / 362.4 MB, free: 9.227 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0171/0.05993, allocations: 14 MB / 376.4 MB, free: 10.98 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005459/0.06048, allocations: 0.6604 MB / 377.1 MB, free: 10.29 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003882/0.06087, allocations: 215.9 kB / 377.3 MB, free: 10.07 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004166/0.06128, allocations: 480.3 kB / 377.7 MB, free: 9.602 MB / 346.7 MB Notification: Performance of SimCode: time 1.493e-06/0.06128, allocations: 3.938 kB / 377.8 MB, free: 9.598 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04472/0.106, allocations: 29.82 MB / 407.6 MB, free: 11.97 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.23/8.336, allocations: 3.594 kB / 407.6 MB, free: 11.97 MB / 378.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCVcharging_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCVcharging.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.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: 10.627342614345253]