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.00178/0.00178, allocations: 120.1 kB / 17.78 MB, free: 5.23 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.002045/0.002045, allocations: 198.8 kB / 20.73 MB, free: 2.289 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.484/1.484, allocations: 225.6 MB / 249.1 MB, free: 3.617 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 51.92 kB / 365.6 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.096/0.09747, allocations: 52.14 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007948/0.1054, allocations: 6.04 MB / 423.8 MB, free: 6.559 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003717/0.1091, allocations: 2.155 MB / 426 MB, free: 4.398 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004816/0.1096, allocations: 23.81 kB / 426 MB, free: 4.375 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001452/0.1111, allocations: 0.6302 MB / 426.6 MB, free: 3.742 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008265/0.1119, allocations: 405.8 kB / 427 MB, free: 3.344 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008798/0.1128, allocations: 410.3 kB / 427.4 MB, free: 2.945 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001551/0.1143, allocations: 1.302 MB / 428.7 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000546/0.1149, allocations: 337.9 kB / 429 MB, free: 1.285 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000621/0.1155, allocations: 0.5062 MB / 429.6 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000698/0.1162, allocations: 0.6149 MB / 430.2 MB, free: 164 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000145/0.1163, allocations: 116 kB / 430.3 MB, free: 48 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003194/0.1167, allocations: 172 kB / 430.4 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006401/0.1173, allocations: 0.6544 MB / 431.1 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008047/0.1181, allocations: 0.8894 MB / 432 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002591/0.1207, allocations: 2.634 MB / 434.6 MB, free: 11.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1207, allocations: 0 / 434.6 MB, free: 11.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1207, allocations: 0 / 434.6 MB, free: 11.68 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.899e-05/0.1207, allocations: 0 / 434.6 MB, free: 11.68 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.003818/0.1245, allocations: 2.426 MB / 437.1 MB, free: 9.195 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.1246, allocations: 8.031 kB / 437.1 MB, free: 9.188 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001392/0.1247, allocations: 110.7 kB / 437.2 MB, free: 9.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003087/0.125, allocations: 219.5 kB / 437.4 MB, free: 8.855 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002595/0.1276, allocations: 1.696 MB / 439.1 MB, free: 7.09 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001329/0.1278, allocations: 112.7 kB / 439.2 MB, free: 6.965 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.1279, allocations: 60 kB / 439.2 MB, free: 6.906 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001553/0.1294, allocations: 0.8219 MB / 440.1 MB, free: 6.031 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.1294, allocations: 0 / 440.1 MB, free: 6.031 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.636e-05/0.1295, allocations: 28 kB / 440.1 MB, free: 6.004 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.759e-05/0.1295, allocations: 23.94 kB / 440.1 MB, free: 5.98 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001102/0.1306, allocations: 0.5438 MB / 440.7 MB, free: 5.438 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006176/0.1368, allocations: 3.997 MB / 444.7 MB, free: 1.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001366/0.1382, allocations: 0.4958 MB / 445.2 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007934/0.139, allocations: 345.2 kB / 445.5 MB, free: 488 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.516e-05/0.139, allocations: 4.281 kB / 445.5 MB, free: 484 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.397e-05/0.139, allocations: 38.84 kB / 445.5 MB, free: 436 kB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.294e-06/0.139, allocations: 0 / 445.5 MB, free: 436 kB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.1879/0.3269, allocations: 0.9418 MB / 446.5 MB, free: 29.66 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.19e-05/0.327, allocations: 270.8 kB / 446.7 MB, free: 29.35 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003683/0.3306, allocations: 3.148 MB / 449.9 MB, free: 29.13 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.455e-05/0.3307, allocations: 32.11 kB / 449.9 MB, free: 29.1 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005833/0.3313, allocations: 0.8654 MB / 450.8 MB, free: 28.96 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.618e-05/0.3314, allocations: 127.9 kB / 450.9 MB, free: 28.89 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001555/0.3316, allocations: 93.78 kB / 451 MB, free: 28.87 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.555e-05/0.3316, allocations: 325.3 kB / 451.3 MB, free: 28.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004798/0.3321, allocations: 207.7 kB / 451.5 MB, free: 28.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005446/0.3326, allocations: 395.9 kB / 451.9 MB, free: 28.29 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009066/0.3336, allocations: 0.5208 MB / 452.4 MB, free: 28.01 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.3336, allocations: 1.062 kB / 452.4 MB, free: 28.01 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001796/0.3354, allocations: 0.7841 MB / 453.2 MB, free: 27.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.317e-05/0.3354, allocations: 7.062 kB / 453.2 MB, free: 27.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.3354, allocations: 3.688 kB / 453.2 MB, free: 27.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000319/0.3357, allocations: 68.91 kB / 453.3 MB, free: 27.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005334/0.3362, allocations: 121.3 kB / 453.4 MB, free: 27.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001411/0.3377, allocations: 1.794 MB / 455.2 MB, free: 26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006908/0.3383, allocations: 78.36 kB / 455.3 MB, free: 25.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.371e-05/0.3384, allocations: 21.97 kB / 455.3 MB, free: 25.96 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.0008521/0.3392, allocations: 0.648 MB / 456 MB, free: 25.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002564/0.3395, allocations: 190.5 kB / 456.1 MB, free: 25.56 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002909/0.3398, allocations: 219.1 kB / 456.4 MB, free: 25.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.3398, allocations: 8.438 kB / 456.4 MB, free: 25.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.3398, allocations: 5.188 kB / 456.4 MB, free: 25.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.3398, allocations: 2.672 kB / 456.4 MB, free: 25.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003319/0.3431, allocations: 2.161 MB / 458.5 MB, free: 24.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.147e-06/0.3431, allocations: 3.938 kB / 458.5 MB, free: 24.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003903/0.3435, allocations: 77.5 kB / 458.6 MB, free: 24.51 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001942/0.3437, allocations: 57.45 kB / 458.7 MB, free: 24.49 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.862e-05/0.3437, allocations: 22.08 kB / 458.7 MB, free: 24.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00119/0.3449, allocations: 1.73 MB / 460.4 MB, free: 22.85 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.3449, allocations: 3.531 kB / 460.4 MB, free: 22.85 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001858/0.3468, allocations: 0.984 MB / 461.4 MB, free: 22.36 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006561/0.3474, allocations: 451 kB / 461.8 MB, free: 22.08 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001474/0.3476, allocations: 13.56 kB / 461.9 MB, free: 22.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005348/0.3481, allocations: 53.61 kB / 461.9 MB, free: 22.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/0.3482, allocations: 46.17 kB / 462 MB, free: 22.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.491e-05/0.3483, allocations: 12.44 kB / 462 MB, free: 22.05 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003011/0.3513, allocations: 2.247 MB / 464.2 MB, free: 21.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3513, allocations: 0 / 464.2 MB, free: 21.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009204/0.3522, allocations: 254.8 kB / 464.5 MB, free: 21.26 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.003536/0.3557, allocations: 1.909 MB / 466.4 MB, free: 20.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001333/0.3571, allocations: 0.587 MB / 467 MB, free: 19.9 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.3571, allocations: 2.188 kB / 467 MB, free: 19.9 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000604/0.3577, allocations: 351 kB / 467.3 MB, free: 19.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001455/0.3591, allocations: 289.1 kB / 467.6 MB, free: 19.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02512/0.3843, allocations: 19.76 MB / 487.4 MB, free: 6.816 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008308/0.3851, allocations: 1.493 MB / 488.8 MB, free: 5.293 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006064/0.3857, allocations: 299.1 kB / 489.1 MB, free: 5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006254/0.3863, allocations: 0.6477 MB / 489.8 MB, free: 4.352 MB / 366.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3863, allocations: 0 / 489.8 MB, free: 4.352 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08581/0.4721, allocations: 36.44 MB / 0.5139 GB, free: 216 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.12/15.6, allocations: 8.062 kB / 0.5139 GB, free: 208 kB / 398.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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_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_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.csv","/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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.579163033049554]