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.001847/0.001847, allocations: 123 kB / 17.79 MB, free: 5.266 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.002118/0.002118, allocations: 189.2 kB / 20.73 MB, free: 2.328 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.465/1.465, allocations: 225.6 MB / 249.1 MB, free: 3.582 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_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 0.002394/0.002394, allocations: 47.92 kB / 365.6 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1116, allocations: 52.15 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007806/0.1194, allocations: 5.522 MB / 423.3 MB, free: 7.066 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003234/0.1226, allocations: 1.723 MB / 425 MB, free: 5.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005845/0.1232, allocations: 19.81 kB / 425 MB, free: 5.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001289/0.1245, allocations: 0.5252 MB / 425.6 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009121/0.1254, allocations: 342.2 kB / 425.9 MB, free: 4.457 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009583/0.1264, allocations: 374.8 kB / 426.3 MB, free: 4.094 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00134/0.1277, allocations: 0.8886 MB / 427.2 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004801/0.1282, allocations: 240.8 kB / 427.4 MB, free: 2.953 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005721/0.1288, allocations: 374.8 kB / 427.8 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006776/0.1294, allocations: 462.3 kB / 428.2 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001548/0.1296, allocations: 80 kB / 428.3 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002822/0.1299, allocations: 119.9 kB / 428.4 MB, free: 1.938 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005301/0.1304, allocations: 0.5844 MB / 429 MB, free: 1.352 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008887/0.1313, allocations: 0.7415 MB / 429.7 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002466/0.1338, allocations: 2.124 MB / 431.8 MB, free: 14.47 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.1338, allocations: 0 / 431.8 MB, free: 14.47 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1338, allocations: 0 / 431.8 MB, free: 14.47 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.242e-05/0.1338, allocations: 0 / 431.8 MB, free: 14.47 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.004345/0.1382, allocations: 2.133 MB / 434 MB, free: 12.28 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/0.1382, allocations: 12.02 kB / 434 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000122/0.1384, allocations: 86.72 kB / 434.1 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000337/0.1387, allocations: 199.6 kB / 434.3 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002417/0.1411, allocations: 1.515 MB / 435.8 MB, free: 10.42 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.569e-05/0.1412, allocations: 62.7 kB / 435.8 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.239e-05/0.1413, allocations: 48 kB / 435.9 MB, free: 10.31 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001104/0.1424, allocations: 0.5892 MB / 436.5 MB, free: 9.676 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.1424, allocations: 0 / 436.5 MB, free: 9.676 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.477e-05/0.1424, allocations: 27.98 kB / 436.5 MB, free: 9.648 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.282e-05/0.1425, allocations: 12 kB / 436.5 MB, free: 9.637 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007349/0.1432, allocations: 339.8 kB / 436.9 MB, free: 9.305 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004529/0.1477, allocations: 3.247 MB / 440.1 MB, free: 5.938 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001168/0.1489, allocations: 354.5 kB / 440.4 MB, free: 5.586 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004805/0.1494, allocations: 176.7 kB / 440.6 MB, free: 5.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.783e-05/0.1494, allocations: 4 kB / 440.6 MB, free: 5.406 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.226e-05/0.1494, allocations: 38.55 kB / 440.7 MB, free: 5.359 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.733e-06/0.1494, allocations: 0 / 440.7 MB, free: 5.359 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.001994/0.1514, allocations: 0.6977 MB / 441.4 MB, free: 4.633 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001359/0.1516, allocations: 213.6 kB / 441.6 MB, free: 4.375 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00371/0.1553, allocations: 2.888 MB / 444.5 MB, free: 1.441 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.892e-05/0.1553, allocations: 33.7 kB / 444.5 MB, free: 1.402 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007316/0.1561, allocations: 0.7821 MB / 445.3 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.872e-05/0.1562, allocations: 91.25 kB / 445.4 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001204/0.1563, allocations: 66.03 kB / 445.4 MB, free: 460 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.1564, allocations: 325.9 kB / 445.7 MB, free: 128 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003492/0.1568, allocations: 124.6 kB / 445.9 MB, free: 4 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1922/0.349, allocations: 285.1 kB / 446.1 MB, free: 29.22 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006827/0.3497, allocations: 362.1 kB / 446.5 MB, free: 29.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.059e-06/0.3497, allocations: 0 / 446.5 MB, free: 29.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001448/0.3511, allocations: 0.563 MB / 447.1 MB, free: 29.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/0.3512, allocations: 8.359 kB / 447.1 MB, free: 29.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.3512, allocations: 3.656 kB / 447.1 MB, free: 29.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002815/0.3514, allocations: 61.5 kB / 447.1 MB, free: 29.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002855/0.3517, allocations: 76.77 kB / 447.2 MB, free: 29.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001344/0.3531, allocations: 1.723 MB / 448.9 MB, free: 27.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006101/0.3537, allocations: 66.81 kB / 449 MB, free: 27.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.372e-05/0.3537, allocations: 14.5 kB / 449 MB, free: 27.55 MB / 366.1 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.0006524/0.3544, allocations: 0.575 MB / 449.6 MB, free: 27.44 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001808/0.3545, allocations: 172 kB / 449.8 MB, free: 27.39 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001072/0.3556, allocations: 0.5197 MB / 450.3 MB, free: 27.32 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.3556, allocations: 3.125 kB / 450.3 MB, free: 27.32 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-06/0.3556, allocations: 0 / 450.3 MB, free: 27.32 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.3556, allocations: 2.016 kB / 450.3 MB, free: 27.32 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002397/0.358, allocations: 1.686 MB / 452 MB, free: 26.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.358, allocations: 2.25 kB / 452 MB, free: 26.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000227/0.3583, allocations: 43.86 kB / 452 MB, free: 26.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001514/0.3584, allocations: 50.88 kB / 452.1 MB, free: 26.97 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.891e-05/0.3584, allocations: 6.828 kB / 452.1 MB, free: 26.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001052/0.3595, allocations: 1.673 MB / 453.7 MB, free: 25.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3595, allocations: 6.688 kB / 453.7 MB, free: 25.48 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001358/0.3608, allocations: 0.7132 MB / 454.5 MB, free: 25.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005123/0.3613, allocations: 388.1 kB / 454.8 MB, free: 25.03 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001221/0.3615, allocations: 12.19 kB / 454.8 MB, free: 25.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004213/0.3619, allocations: 42.3 kB / 454.9 MB, free: 25.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.097e-05/0.362, allocations: 30.3 kB / 454.9 MB, free: 25.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.652e-05/0.362, allocations: 8.812 kB / 454.9 MB, free: 25.02 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002773/0.3648, allocations: 2.064 MB / 457 MB, free: 24.8 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3648, allocations: 1.125 kB / 457 MB, free: 24.8 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007606/0.3655, allocations: 199.4 kB / 457.2 MB, free: 24.79 MB / 366.1 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.002847/0.3684, allocations: 1.536 MB / 458.7 MB, free: 23.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001092/0.3695, allocations: 422.3 kB / 459.1 MB, free: 23.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/0.3695, allocations: 5.406 kB / 459.1 MB, free: 23.65 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005031/0.37, allocations: 259.4 kB / 459.4 MB, free: 23.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001046/0.371, allocations: 228.7 kB / 459.6 MB, free: 23.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02314/0.3942, allocations: 17.52 MB / 477.1 MB, free: 16.44 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006916/0.3949, allocations: 1.354 MB / 478.5 MB, free: 15.28 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004382/0.3953, allocations: 242.4 kB / 478.7 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005166/0.3958, allocations: 0.5774 MB / 479.3 MB, free: 14.5 MB / 366.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3958, allocations: 0 / 479.3 MB, free: 14.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07094/0.4668, allocations: 32.81 MB / 0.5001 GB, free: 13.93 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.48/14.94, allocations: 8 kB / 0.5001 GB, free: 13.92 MB / 398.1 MB " [Timeout remaining time 645] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.csv --start-time 0 --stop-time 1200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/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: 17.810579054057598]