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.001379/0.001379, allocations: 115.7 kB / 18.49 MB, free: 4.59 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.001291/0.001291, allocations: 194.5 kB / 21.43 MB, free: 1.66 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.384/1.384, allocations: 225.6 MB / 249.8 MB, free: 3.613 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 51.92 kB / 366.3 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09519/0.09668, allocations: 52.15 MB / 418.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007082/0.1038, allocations: 5.518 MB / 424 MB, free: 7.094 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002687/0.1064, allocations: 1.723 MB / 425.7 MB, free: 5.367 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002474/0.1067, allocations: 15.94 kB / 425.7 MB, free: 5.352 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009745/0.1077, allocations: 0.5174 MB / 426.3 MB, free: 4.832 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006066/0.1083, allocations: 358.1 kB / 426.6 MB, free: 4.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007625/0.109, allocations: 362.9 kB / 427 MB, free: 4.129 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009828/0.11, allocations: 0.8847 MB / 427.8 MB, free: 3.242 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004216/0.1104, allocations: 240.8 kB / 428.1 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004217/0.1109, allocations: 374.8 kB / 428.4 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005117/0.1114, allocations: 470.3 kB / 428.9 MB, free: 2.164 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000102/0.1115, allocations: 80 kB / 429 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002019/0.1117, allocations: 119.9 kB / 429.1 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000492/0.1122, allocations: 0.5843 MB / 429.7 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006391/0.1128, allocations: 0.7376 MB / 430.4 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002034/0.1148, allocations: 2.124 MB / 432.5 MB, free: 14.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.1148, allocations: 0 / 432.5 MB, free: 14.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.1148, allocations: 0 / 432.5 MB, free: 14.5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.844e-05/0.1149, allocations: 0 / 432.5 MB, free: 14.5 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.003219/0.1181, allocations: 2.141 MB / 434.7 MB, free: 12.3 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.1181, allocations: 8.031 kB / 434.7 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.102e-05/0.1182, allocations: 17.19 kB / 434.7 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001026/0.1183, allocations: 86.7 kB / 434.8 MB, free: 12.19 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002714/0.1185, allocations: 199.6 kB / 435 MB, free: 11.99 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002249/0.1208, allocations: 1.511 MB / 436.5 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.331e-05/0.1209, allocations: 66.7 kB / 436.6 MB, free: 10.37 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.926e-05/0.121, allocations: 44 kB / 436.6 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001093/0.1221, allocations: 0.5892 MB / 437.2 MB, free: 9.688 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.954e-05/0.1221, allocations: 8 kB / 437.2 MB, free: 9.68 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.28e-05/0.1221, allocations: 24 kB / 437.2 MB, free: 9.656 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.315e-05/0.1221, allocations: 12 kB / 437.2 MB, free: 9.645 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000741/0.1229, allocations: 347.8 kB / 437.6 MB, free: 9.309 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004726/0.1276, allocations: 3.243 MB / 440.8 MB, free: 5.941 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001157/0.1288, allocations: 356.9 kB / 441.2 MB, free: 5.586 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004756/0.1292, allocations: 164.8 kB / 441.3 MB, free: 5.422 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.486e-05/0.1293, allocations: 7.984 kB / 441.3 MB, free: 5.414 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.762e-05/0.1293, allocations: 42.56 kB / 441.4 MB, free: 5.363 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 4.389e-06/0.1293, allocations: 3.984 kB / 441.4 MB, free: 5.359 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.001949/0.1313, allocations: 0.6977 MB / 442.1 MB, free: 4.633 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001514/0.1314, allocations: 209.6 kB / 442.3 MB, free: 4.379 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00378/0.1352, allocations: 2.892 MB / 445.2 MB, free: 1.441 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.402e-05/0.1352, allocations: 33.7 kB / 445.2 MB, free: 1.402 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007633/0.136, allocations: 0.786 MB / 446 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.336e-05/0.1361, allocations: 83.27 kB / 446.1 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001245/0.1362, allocations: 66.03 kB / 446.1 MB, free: 464 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.1364, allocations: 322 kB / 446.5 MB, free: 136 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003459/0.1367, allocations: 124.6 kB / 446.6 MB, free: 12 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2/0.3367, allocations: 283.8 kB / 446.9 MB, free: 29.19 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006285/0.3374, allocations: 360.7 kB / 447.2 MB, free: 29.06 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.3374, allocations: 6.188 kB / 447.2 MB, free: 29.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001451/0.3388, allocations: 0.5634 MB / 447.8 MB, free: 29.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/0.3389, allocations: 7.531 kB / 447.8 MB, free: 29.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.3389, allocations: 1.375 kB / 447.8 MB, free: 29.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002931/0.3392, allocations: 57.5 kB / 447.8 MB, free: 29.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002821/0.3394, allocations: 77 kB / 447.9 MB, free: 29.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001303/0.3407, allocations: 1.728 MB / 449.6 MB, free: 27.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006378/0.3414, allocations: 64.08 kB / 449.7 MB, free: 27.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.273e-05/0.3414, allocations: 19.2 kB / 449.7 MB, free: 27.53 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.0008887/0.3423, allocations: 0.5717 MB / 450.3 MB, free: 27.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002121/0.3425, allocations: 171.3 kB / 450.5 MB, free: 27.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001133/0.3436, allocations: 0.5184 MB / 451 MB, free: 27.3 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.3436, allocations: 0 / 451 MB, free: 27.3 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.684e-06/0.3437, allocations: 1.344 kB / 451 MB, free: 27.3 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.441e-06/0.3437, allocations: 2.672 kB / 451 MB, free: 27.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002507/0.3462, allocations: 1.687 MB / 452.7 MB, free: 26.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.3462, allocations: 0 / 452.7 MB, free: 26.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002424/0.3464, allocations: 49.22 kB / 452.7 MB, free: 26.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001784/0.3466, allocations: 50.83 kB / 452.8 MB, free: 26.95 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.073e-05/0.3466, allocations: 1.812 kB / 452.8 MB, free: 26.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001146/0.3478, allocations: 1.678 MB / 454.5 MB, free: 25.45 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3478, allocations: 0 / 454.5 MB, free: 25.45 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001398/0.3492, allocations: 0.716 MB / 455.2 MB, free: 25.19 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005464/0.3497, allocations: 390.9 kB / 455.6 MB, free: 25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000121/0.3498, allocations: 11.44 kB / 455.6 MB, free: 24.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004356/0.3503, allocations: 43.47 kB / 455.6 MB, free: 24.99 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/0.3504, allocations: 32 kB / 455.6 MB, free: 24.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.02e-05/0.3504, allocations: 9.938 kB / 455.6 MB, free: 24.99 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003141/0.3535, allocations: 2.068 MB / 457.7 MB, free: 24.78 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3535, allocations: 0 / 457.7 MB, free: 24.78 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009322/0.3545, allocations: 200.9 kB / 457.9 MB, free: 24.76 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.00293/0.3574, allocations: 1.525 MB / 459.4 MB, free: 23.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001244/0.3586, allocations: 421.5 kB / 459.8 MB, free: 23.63 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.114e-06/0.3586, allocations: 6.25 kB / 459.9 MB, free: 23.63 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00056/0.3592, allocations: 267.9 kB / 460.1 MB, free: 23.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001313/0.3605, allocations: 224.4 kB / 460.3 MB, free: 23.37 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02598/0.3865, allocations: 17.52 MB / 477.9 MB, free: 16.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007025/0.3872, allocations: 1.356 MB / 479.2 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000484/0.3877, allocations: 246.6 kB / 479.4 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005363/0.3882, allocations: 0.5696 MB / 480 MB, free: 14.52 MB / 366.1 MB Notification: Performance of SimCode: time 1.573e-06/0.3882, allocations: 0 / 480 MB, free: 14.52 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06559/0.4538, allocations: 32.85 MB / 0.5008 GB, free: 13.92 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.12/14.57, allocations: 20.45 kB / 0.5009 GB, free: 13.91 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 & /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/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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 19.057282882975414]