Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.0008806/0.0008806, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0009511/0.0009511, allocations: 157.4 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.9324/0.9324, allocations: 173.4 MB / 200.4 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] 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.CCCV_Cell,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 318.4 MB, free: 6.387 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.913e-05/2.088e-05, allocations: 6.219 kB / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.004904/0.004925, allocations: 4.911 MB / 323.3 MB, free: 1.438 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00221/0.007135, allocations: 1.637 MB / 325 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003441/0.007479, allocations: 19.94 kB / 325 MB, free: 15.78 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001259/0.008738, allocations: 0.5133 MB / 325.5 MB, free: 15.26 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006807/0.009419, allocations: 358 kB / 325.8 MB, free: 14.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007665/0.01019, allocations: 382 kB / 326.2 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000852/0.01104, allocations: 0.9195 MB / 327.1 MB, free: 13.61 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003334/0.01137, allocations: 225.3 kB / 327.4 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005756/0.01195, allocations: 0.5107 MB / 327.9 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004275/0.01237, allocations: 379 kB / 328.2 MB, free: 12.51 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.879e-05/0.01246, allocations: 76 kB / 328.3 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001752/0.01264, allocations: 119.9 kB / 328.4 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003481/0.01299, allocations: 0.5961 MB / 329 MB, free: 11.72 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003143/0.0133, allocations: 434.7 kB / 329.5 MB, free: 11.29 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001385/0.01469, allocations: 2.06 MB / 331.5 MB, free: 9.227 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.01469, allocations: 0 / 331.5 MB, free: 9.227 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.01469, allocations: 0 / 331.5 MB, free: 9.227 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.451e-05/0.01474, allocations: 0 / 331.5 MB, free: 9.227 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.003089/0.01783, allocations: 2.046 MB / 333.6 MB, free: 7.141 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/0.01788, allocations: 8.922 kB / 333.6 MB, free: 7.133 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000104/0.01798, allocations: 98.64 kB / 333.7 MB, free: 7.027 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002455/0.01823, allocations: 191.7 kB / 333.8 MB, free: 6.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002322/0.02055, allocations: 1.446 MB / 335.3 MB, free: 5.363 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001201/0.02067, allocations: 92.72 kB / 335.4 MB, free: 5.258 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.531e-05/0.02074, allocations: 48 kB / 335.4 MB, free: 5.211 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001118/0.02186, allocations: 0.8364 MB / 336.3 MB, free: 4.266 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/0.02188, allocations: 0 / 336.3 MB, free: 4.266 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.593e-05/0.02192, allocations: 20 kB / 336.3 MB, free: 4.246 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.02194, allocations: 12 kB / 336.3 MB, free: 4.234 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006498/0.02259, allocations: 347.7 kB / 336.6 MB, free: 3.895 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004446/0.02703, allocations: 2.919 MB / 339.6 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009017/0.02793, allocations: 365.2 kB / 339.9 MB, free: 0.4961 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003981/0.02833, allocations: 176.8 kB / 340.1 MB, free: 328 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.072e-05/0.02836, allocations: 0 / 340.1 MB, free: 328 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.089e-05/0.02839, allocations: 34.56 kB / 340.1 MB, free: 284 kB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.783e-06/0.0284, allocations: 0 / 340.1 MB, free: 284 kB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001556/0.02995, allocations: 0.633 MB / 340.8 MB, free: 15.64 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.522e-05/0.03005, allocations: 209.6 kB / 341 MB, free: 15.38 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00356/0.03361, allocations: 2.9 MB / 343.9 MB, free: 12.44 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.54e-05/0.03365, allocations: 37.64 kB / 343.9 MB, free: 12.39 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000705/0.03436, allocations: 0.7822 MB / 344.7 MB, free: 11.61 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.81e-05/0.03443, allocations: 83.36 kB / 344.8 MB, free: 11.52 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001227/0.03456, allocations: 65.98 kB / 344.8 MB, free: 11.45 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.904e-05/0.03466, allocations: 318 kB / 345.1 MB, free: 11.14 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003233/0.03498, allocations: 128.6 kB / 345.3 MB, free: 11.01 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004435/0.03542, allocations: 439 kB / 345.7 MB, free: 10.48 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006133/0.03604, allocations: 364.7 kB / 346 MB, free: 10.07 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.03604, allocations: 4 kB / 346 MB, free: 10.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001047/0.03709, allocations: 0.5673 MB / 346.6 MB, free: 9.488 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.03711, allocations: 4 kB / 346.6 MB, free: 9.484 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.03712, allocations: 4 kB / 346.6 MB, free: 9.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002113/0.03733, allocations: 56.83 kB / 346.7 MB, free: 9.422 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001626/0.03749, allocations: 80.08 kB / 346.8 MB, free: 9.344 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001106/0.0386, allocations: 1.609 MB / 348.4 MB, free: 7.621 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002739/0.03887, allocations: 63.8 kB / 348.4 MB, free: 7.559 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.837e-05/0.03889, allocations: 16 kB / 348.4 MB, free: 7.543 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.000515/0.0394, allocations: 0.5757 MB / 349 MB, free: 6.957 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001252/0.03953, allocations: 178.8 kB / 349.2 MB, free: 6.781 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006444/0.04017, allocations: 0.5104 MB / 349.7 MB, free: 6.262 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.04018, allocations: 0 / 349.7 MB, free: 6.262 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.863e-06/0.04018, allocations: 0 / 349.7 MB, free: 6.262 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.04018, allocations: 7.938 kB / 349.7 MB, free: 6.254 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001531/0.04171, allocations: 1.482 MB / 351.2 MB, free: 4.707 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.04172, allocations: 11.91 kB / 351.2 MB, free: 4.695 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001187/0.04183, allocations: 47.97 kB / 351.3 MB, free: 4.648 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001098/0.04194, allocations: 40.83 kB / 351.3 MB, free: 4.605 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.455e-05/0.04196, allocations: 8.125 kB / 351.3 MB, free: 4.598 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008805/0.04284, allocations: 1.558 MB / 352.9 MB, free: 2.926 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.04284, allocations: 0 / 352.9 MB, free: 2.926 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007801/0.04362, allocations: 0.7189 MB / 353.6 MB, free: 2.184 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006185/0.04424, allocations: 314.8 kB / 353.9 MB, free: 1.875 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.153e-05/0.04431, allocations: 4 kB / 353.9 MB, free: 1.871 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002061/0.04452, allocations: 47.95 kB / 353.9 MB, free: 1.824 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.349e-05/0.04459, allocations: 32.14 kB / 354 MB, free: 1.793 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.038e-05/0.0446, allocations: 4 kB / 354 MB, free: 1.789 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001706/0.04631, allocations: 2.067 MB / 356 MB, free: 15.7 MB / 330.7 MB Notification: Performance of sort global known variables: time 3e-08/0.04631, allocations: 0 / 356 MB, free: 15.7 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005103/0.04682, allocations: 199.7 kB / 356.2 MB, free: 15.5 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.001599/0.04842, allocations: 1.537 MB / 357.8 MB, free: 14.08 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007896/0.0492, allocations: 441.5 kB / 358.2 MB, free: 13.64 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.04921, allocations: 0 / 358.2 MB, free: 13.64 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003016/0.04951, allocations: 263.2 kB / 358.5 MB, free: 13.37 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007941/0.0503, allocations: 236.5 kB / 358.7 MB, free: 13.15 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02853/0.07884, allocations: 17.67 MB / 376.4 MB, free: 11.13 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000675/0.07951, allocations: 0.7588 MB / 377.1 MB, free: 10.34 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005329/0.08004, allocations: 241.7 kB / 377.4 MB, free: 10.1 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005033/0.08055, allocations: 0.5745 MB / 377.9 MB, free: 9.52 MB / 346.7 MB Notification: Performance of SimCode: time 2.434e-06/0.08055, allocations: 0 / 377.9 MB, free: 9.52 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05107/0.1316, allocations: 34.62 MB / 412.5 MB, free: 7.09 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.754/8.885, allocations: 7.875 kB / 412.6 MB, free: 7.082 MB / 378.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 11.330631646327674]