Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.0008151/0.0008151, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.0007992/0.0007992, allocations: 170 kB / 23.95 MB, free: 0.6094 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.8773/0.8773, allocations: 177.1 MB / 204.3 MB, free: 5.715 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.CCCV_Cell,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.869e-05/2.032e-05, allocations: 6.219 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.004358/0.004379, allocations: 4.97 MB / 329.5 MB, free: 10.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002008/0.006387, allocations: 1.804 MB / 331.3 MB, free: 9.137 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002308/0.006618, allocations: 15.88 kB / 331.3 MB, free: 9.121 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007041/0.007322, allocations: 0.5094 MB / 331.9 MB, free: 8.609 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004606/0.007783, allocations: 405.7 kB / 332.2 MB, free: 8.211 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004447/0.008227, allocations: 372 kB / 332.6 MB, free: 7.852 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005996/0.008827, allocations: 0.9196 MB / 333.5 MB, free: 6.926 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002965/0.009123, allocations: 225.3 kB / 333.8 MB, free: 6.703 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003603/0.009484, allocations: 0.5107 MB / 334.3 MB, free: 6.191 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000308/0.009792, allocations: 383.1 kB / 334.6 MB, free: 5.816 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.596e-05/0.009858, allocations: 83.94 kB / 334.7 MB, free: 5.734 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001329/0.009991, allocations: 123.9 kB / 334.8 MB, free: 5.613 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002839/0.01027, allocations: 0.5883 MB / 335.4 MB, free: 5.023 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002731/0.01055, allocations: 438.6 kB / 335.9 MB, free: 4.594 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001527/0.01207, allocations: 2.064 MB / 337.9 MB, free: 2.523 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.01208, allocations: 0 / 337.9 MB, free: 2.523 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.01208, allocations: 0 / 337.9 MB, free: 2.523 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.176e-05/0.01209, allocations: 0 / 337.9 MB, free: 2.523 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.001865/0.01396, allocations: 2.057 MB / 340 MB, free: 436 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.014, allocations: 12.03 kB / 340 MB, free: 424 kB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.961e-05/0.01408, allocations: 90.7 kB / 340.1 MB, free: 324 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001726/0.01425, allocations: 195.7 kB / 340.3 MB, free: 128 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001454/0.0157, allocations: 1.454 MB / 341.7 MB, free: 14.64 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.429e-05/0.0158, allocations: 100.7 kB / 341.8 MB, free: 14.53 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.169e-05/0.01585, allocations: 44 kB / 341.9 MB, free: 14.48 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007143/0.01656, allocations: 0.8442 MB / 342.7 MB, free: 13.54 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.01657, allocations: 0 / 342.7 MB, free: 13.54 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.988e-05/0.01661, allocations: 20 kB / 342.7 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.01663, allocations: 15.98 kB / 342.7 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007261/0.01735, allocations: 347.7 kB / 343.1 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002604/0.01996, allocations: 2.923 MB / 346 MB, free: 10.12 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006202/0.02058, allocations: 358.2 kB / 346.4 MB, free: 9.766 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002938/0.02087, allocations: 168.8 kB / 346.5 MB, free: 9.598 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.098e-05/0.0209, allocations: 4 kB / 346.5 MB, free: 9.594 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.952e-05/0.02093, allocations: 42.55 kB / 346.6 MB, free: 9.543 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 1.513e-06/0.02093, allocations: 0 / 346.6 MB, free: 9.543 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.001002/0.02193, allocations: 0.6292 MB / 347.2 MB, free: 8.906 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.971e-05/0.022, allocations: 213.6 kB / 347.4 MB, free: 8.648 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002542/0.02455, allocations: 2.904 MB / 350.3 MB, free: 5.699 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.27e-05/0.02457, allocations: 29.7 kB / 350.3 MB, free: 5.664 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004374/0.02501, allocations: 0.79 MB / 351.1 MB, free: 4.863 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.315e-05/0.02505, allocations: 79.31 kB / 351.2 MB, free: 4.785 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.131e-05/0.02512, allocations: 77.91 kB / 351.3 MB, free: 4.703 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.882e-05/0.02519, allocations: 318 kB / 351.6 MB, free: 4.387 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001761/0.02537, allocations: 124.6 kB / 351.7 MB, free: 4.266 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002972/0.02566, allocations: 444.1 kB / 352.1 MB, free: 3.727 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003806/0.02604, allocations: 357.1 kB / 352.5 MB, free: 3.328 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.02605, allocations: 4 kB / 352.5 MB, free: 3.324 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006272/0.02667, allocations: 0.5557 MB / 353.1 MB, free: 2.758 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.02669, allocations: 10.81 kB / 353.1 MB, free: 2.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.0267, allocations: 7.938 kB / 353.1 MB, free: 2.742 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002129/0.02691, allocations: 69.12 kB / 353.1 MB, free: 2.672 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001487/0.02706, allocations: 71.91 kB / 353.2 MB, free: 2.602 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009599/0.02802, allocations: 1.605 MB / 354.8 MB, free: 0.8867 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002121/0.02823, allocations: 59.7 kB / 354.9 MB, free: 0.8281 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.747e-05/0.02825, allocations: 16 kB / 354.9 MB, free: 0.8125 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 4 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.0004191/0.02867, allocations: 0.5756 MB / 355.5 MB, free: 232 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001207/0.02879, allocations: 174.8 kB / 355.6 MB, free: 56 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006255/0.02941, allocations: 0.5105 MB / 356.1 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.02942, allocations: 3.984 kB / 356.2 MB, free: 15.53 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-06/0.02942, allocations: 0 / 356.2 MB, free: 15.53 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.02942, allocations: 4 kB / 356.2 MB, free: 15.53 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001786/0.03121, allocations: 1.491 MB / 357.6 MB, free: 13.97 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.03121, allocations: 4.125 kB / 357.6 MB, free: 13.97 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001149/0.03133, allocations: 51.84 kB / 357.7 MB, free: 13.92 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.59e-05/0.03142, allocations: 48.83 kB / 357.7 MB, free: 13.87 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.288e-05/0.03144, allocations: 8.016 kB / 357.8 MB, free: 13.86 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007943/0.03223, allocations: 1.562 MB / 359.3 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.03223, allocations: 0 / 359.3 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007407/0.03297, allocations: 0.7158 MB / 360 MB, free: 11.44 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00033/0.0333, allocations: 322.7 kB / 360.3 MB, free: 11.12 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.006e-05/0.03337, allocations: 8 kB / 360.4 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000204/0.03358, allocations: 51.89 kB / 360.4 MB, free: 11.06 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.216e-05/0.03364, allocations: 23.95 kB / 360.4 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.209e-05/0.03365, allocations: 12 kB / 360.4 MB, free: 11.03 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001618/0.03527, allocations: 2.075 MB / 362.5 MB, free: 8.93 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-08/0.03527, allocations: 0 / 362.5 MB, free: 8.93 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000456/0.03573, allocations: 203.7 kB / 362.7 MB, free: 8.73 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,cell.limIntegrator.y,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 (18): * Single equations (assignments): 17 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001525/0.03725, allocations: 1.544 MB / 364.3 MB, free: 7.312 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008852/0.03814, allocations: 438.9 kB / 364.7 MB, free: 6.871 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.03814, allocations: 0 / 364.7 MB, free: 6.871 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002707/0.03841, allocations: 266.6 kB / 364.9 MB, free: 6.598 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006102/0.03902, allocations: 214.7 kB / 365.2 MB, free: 6.383 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0257/0.06472, allocations: 17.74 MB / 382.9 MB, free: 4.312 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005388/0.06526, allocations: 0.7629 MB / 383.7 MB, free: 3.512 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003616/0.06562, allocations: 246.8 kB / 383.9 MB, free: 3.266 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000465/0.06608, allocations: 0.5784 MB / 384.5 MB, free: 2.688 MB / 346.7 MB Notification: Performance of SimCode: time 1.072e-06/0.06608, allocations: 0 / 384.5 MB, free: 2.688 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04643/0.1125, allocations: 34.69 MB / 419.2 MB, free: 184 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.381/8.493, allocations: 0 / 419.2 MB, free: 184 kB / 378.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.85144494753331]