Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.001392/0.001392, allocations: 111.8 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.001342/0.001342, allocations: 194.5 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.419/1.419, allocations: 225.6 MB / 249.8 MB, free: 3.633 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.CCCV_CellRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001858/0.001858, allocations: 47.92 kB / 366.3 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1127, allocations: 52.14 MB / 418.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.0091/0.1218, allocations: 6.038 MB / 424.5 MB, free: 6.559 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004287/0.1261, allocations: 2.159 MB / 426.7 MB, free: 4.395 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008509/0.127, allocations: 19.88 kB / 426.7 MB, free: 4.375 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001807/0.1288, allocations: 0.6341 MB / 427.3 MB, free: 3.738 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00135/0.1301, allocations: 405.8 kB / 427.7 MB, free: 3.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001202/0.1313, allocations: 410.2 kB / 428.1 MB, free: 2.945 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002241/0.1336, allocations: 1.302 MB / 429.4 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006788/0.1342, allocations: 341.9 kB / 429.7 MB, free: 1.281 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001075/0.1353, allocations: 0.5062 MB / 430.3 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001048/0.1364, allocations: 0.6033 MB / 430.9 MB, free: 172 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002932/0.1367, allocations: 116 kB / 431 MB, free: 56 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005318/0.1372, allocations: 176 kB / 431.1 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006638/0.1379, allocations: 0.6505 MB / 431.8 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001291/0.1392, allocations: 0.8894 MB / 432.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00287/0.142, allocations: 2.638 MB / 435.3 MB, free: 11.69 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.142, allocations: 0 / 435.3 MB, free: 11.69 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.142, allocations: 0 / 435.3 MB, free: 11.69 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.492e-05/0.1421, allocations: 0 / 435.3 MB, free: 11.69 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.004707/0.1468, allocations: 2.426 MB / 437.7 MB, free: 9.199 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.735e-05/0.1468, allocations: 8.031 kB / 437.8 MB, free: 9.191 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.114e-05/0.1469, allocations: 17.5 kB / 437.8 MB, free: 9.172 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000164/0.147, allocations: 118.7 kB / 437.9 MB, free: 9.047 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004476/0.1475, allocations: 219.5 kB / 438.1 MB, free: 8.832 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003324/0.1508, allocations: 1.696 MB / 439.8 MB, free: 7.066 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001952/0.151, allocations: 108.7 kB / 439.9 MB, free: 6.949 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001221/0.1511, allocations: 60 kB / 440 MB, free: 6.891 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001655/0.1528, allocations: 0.8181 MB / 440.8 MB, free: 6.02 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.1528, allocations: 11.88 kB / 440.8 MB, free: 6.008 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.663e-05/0.1529, allocations: 31.98 kB / 440.8 MB, free: 5.977 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.861e-05/0.1529, allocations: 16 kB / 440.8 MB, free: 5.961 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001176/0.1541, allocations: 0.5438 MB / 441.4 MB, free: 5.418 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00684/0.1609, allocations: 4.001 MB / 445.4 MB, free: 1.293 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001376/0.1623, allocations: 0.4919 MB / 445.9 MB, free: 0.793 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007733/0.1631, allocations: 345.2 kB / 446.2 MB, free: 464 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.146e-05/0.1631, allocations: 4.281 kB / 446.2 MB, free: 460 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.931e-05/0.1631, allocations: 38.84 kB / 446.3 MB, free: 412 kB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.915e-06/0.1631, allocations: 0 / 446.3 MB, free: 412 kB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.2144/0.3776, allocations: 0.9387 MB / 447.2 MB, free: 29.29 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.296e-05/0.3777, allocations: 269.6 kB / 447.5 MB, free: 28.98 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004185/0.3818, allocations: 3.143 MB / 450.6 MB, free: 28.76 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.632e-05/0.3819, allocations: 38.17 kB / 450.6 MB, free: 28.73 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007115/0.3826, allocations: 0.8627 MB / 451.5 MB, free: 28.6 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000116/0.3827, allocations: 130.5 kB / 451.6 MB, free: 28.53 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001955/0.3829, allocations: 92.92 kB / 451.7 MB, free: 28.51 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.334e-05/0.383, allocations: 326 kB / 452 MB, free: 28.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000496/0.3835, allocations: 213.7 kB / 452.2 MB, free: 28.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006058/0.3841, allocations: 393.7 kB / 452.6 MB, free: 27.94 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009213/0.385, allocations: 0.5124 MB / 453.1 MB, free: 27.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/0.385, allocations: 2.141 kB / 453.1 MB, free: 27.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001848/0.3869, allocations: 0.7882 MB / 453.9 MB, free: 27.33 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.47e-05/0.3869, allocations: 6.656 kB / 453.9 MB, free: 27.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/0.3869, allocations: 3.75 kB / 453.9 MB, free: 27.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003567/0.3873, allocations: 63.55 kB / 454 MB, free: 27.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005348/0.3878, allocations: 123.7 kB / 454.1 MB, free: 27.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00156/0.3894, allocations: 1.795 MB / 455.9 MB, free: 25.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006466/0.39, allocations: 74.89 kB / 456 MB, free: 25.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.763e-05/0.3901, allocations: 23.06 kB / 456 MB, free: 25.62 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (51): * Single equations (assignments): 50 * 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.0009577/0.391, allocations: 0.6548 MB / 456.7 MB, free: 25.33 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002249/0.3912, allocations: 192.3 kB / 456.9 MB, free: 25.23 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002772/0.3915, allocations: 216.1 kB / 457.1 MB, free: 25.15 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.3915, allocations: 4.125 kB / 457.1 MB, free: 25.15 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3915, allocations: 3.938 kB / 457.1 MB, free: 25.14 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.3915, allocations: 5.234 kB / 457.1 MB, free: 25.14 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003293/0.3948, allocations: 2.162 MB / 459.2 MB, free: 24.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.3948, allocations: 0 / 459.2 MB, free: 24.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003941/0.3952, allocations: 87.81 kB / 459.3 MB, free: 24.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001802/0.3954, allocations: 59.08 kB / 459.4 MB, free: 24.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.635e-05/0.3954, allocations: 6.844 kB / 459.4 MB, free: 24.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001196/0.3966, allocations: 1.746 MB / 461.1 MB, free: 22.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.3966, allocations: 4.297 kB / 461.1 MB, free: 22.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001715/0.3983, allocations: 0.977 MB / 462.1 MB, free: 22.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005928/0.3989, allocations: 447.4 kB / 462.6 MB, free: 21.76 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001453/0.3991, allocations: 20.53 kB / 462.6 MB, free: 21.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005193/0.3996, allocations: 55.2 kB / 462.6 MB, free: 21.74 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001217/0.3997, allocations: 41.5 kB / 462.7 MB, free: 21.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.496e-05/0.3998, allocations: 11.56 kB / 462.7 MB, free: 21.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002808/0.4026, allocations: 2.248 MB / 464.9 MB, free: 20.97 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4026, allocations: 0 / 464.9 MB, free: 20.97 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008177/0.4034, allocations: 257.4 kB / 465.2 MB, free: 20.95 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (cell.cell.limIntegrator.y,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,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 (29): * Single equations (assignments): 28 * 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.00349/0.4069, allocations: 1.908 MB / 467.1 MB, free: 19.85 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001285/0.4082, allocations: 0.5815 MB / 467.7 MB, free: 19.6 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.4082, allocations: 9.281 kB / 467.7 MB, free: 19.59 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006078/0.4088, allocations: 349.9 kB / 468 MB, free: 19.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001179/0.4099, allocations: 296 kB / 468.3 MB, free: 19.27 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02295/0.4329, allocations: 19.76 MB / 488.1 MB, free: 6.422 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007956/0.4337, allocations: 1.497 MB / 489.6 MB, free: 4.895 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000605/0.4343, allocations: 296.9 kB / 489.9 MB, free: 4.602 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006157/0.4349, allocations: 0.6399 MB / 490.5 MB, free: 3.961 MB / 366.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4349, allocations: 0 / 490.5 MB, free: 3.961 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09975/0.5347, allocations: 36.48 MB / 0.5146 GB, free: 15.8 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.77/15.31, allocations: 10.59 kB / 0.5146 GB, free: 15.79 MB / 414.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 20.174019939964637]