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.001272/0.001272, allocations: 123.9 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.00128/0.00128, allocations: 185.2 kB / 20.73 MB, free: 2.332 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.393/1.393, allocations: 225.6 MB / 249.1 MB, free: 3.59 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.001445/0.001445, allocations: 47.92 kB / 365.6 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09842/0.09986, allocations: 52.15 MB / 417.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007542/0.1074, allocations: 5.514 MB / 423.3 MB, free: 7.062 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003004/0.1104, allocations: 1.73 MB / 425 MB, free: 5.328 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003999/0.1108, allocations: 15.94 kB / 425 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001146/0.112, allocations: 0.5213 MB / 425.6 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000687/0.1126, allocations: 350.1 kB / 425.9 MB, free: 4.445 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008441/0.1135, allocations: 368.9 kB / 426.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009953/0.1145, allocations: 0.8886 MB / 427.1 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004166/0.1149, allocations: 236.9 kB / 427.4 MB, free: 2.953 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004114/0.1153, allocations: 366.7 kB / 427.7 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005255/0.1158, allocations: 470.3 kB / 428.2 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001059/0.1159, allocations: 80 kB / 428.3 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000199/0.1161, allocations: 112 kB / 428.4 MB, free: 1.945 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000482/0.1166, allocations: 0.5843 MB / 429 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006743/0.1173, allocations: 0.7455 MB / 429.7 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002207/0.1195, allocations: 2.124 MB / 431.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1195, allocations: 0 / 431.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1195, allocations: 0 / 431.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.428e-05/0.1195, allocations: 4 kB / 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.003514/0.123, allocations: 2.129 MB / 434 MB, free: 12.29 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.1231, allocations: 11.97 kB / 434 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001208/0.1232, allocations: 94.7 kB / 434.1 MB, free: 12.17 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002915/0.1235, allocations: 195.6 kB / 434.3 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002678/0.1262, allocations: 1.511 MB / 435.8 MB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.906e-05/0.1263, allocations: 74.7 kB / 435.8 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.538e-05/0.1264, allocations: 48 kB / 435.9 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001071/0.1274, allocations: 0.5815 MB / 436.5 MB, free: 9.676 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/0.1274, allocations: 4 kB / 436.5 MB, free: 9.672 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.932e-05/0.1275, allocations: 20 kB / 436.5 MB, free: 9.652 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.614e-05/0.1275, allocations: 12 kB / 436.5 MB, free: 9.641 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007331/0.1282, allocations: 351.7 kB / 436.9 MB, free: 9.297 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004905/0.1331, allocations: 3.239 MB / 440.1 MB, free: 5.938 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001074/0.1342, allocations: 358.6 kB / 440.4 MB, free: 5.578 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004643/0.1347, allocations: 168.8 kB / 440.6 MB, free: 5.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.229e-05/0.1347, allocations: 4 kB / 440.6 MB, free: 5.406 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.32e-05/0.1348, allocations: 42.55 kB / 440.7 MB, free: 5.355 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 2.265e-06/0.1348, allocations: 0 / 440.7 MB, free: 5.355 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.001906/0.1367, allocations: 0.6977 MB / 441.3 MB, free: 4.629 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001283/0.1368, allocations: 213.6 kB / 441.6 MB, free: 4.371 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003766/0.1406, allocations: 2.884 MB / 444.4 MB, free: 1.441 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.638e-05/0.1406, allocations: 29.7 kB / 444.5 MB, free: 1.406 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007675/0.1414, allocations: 0.7938 MB / 445.3 MB, free: 0.6016 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.026e-05/0.1415, allocations: 87.25 kB / 445.3 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.1416, allocations: 66.03 kB / 445.4 MB, free: 456 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.1417, allocations: 326 kB / 445.7 MB, free: 124 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003346/0.1421, allocations: 120.6 kB / 445.8 MB, free: 4 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1852/0.3272, allocations: 280.4 kB / 446.1 MB, free: 29.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005961/0.3278, allocations: 363.1 kB / 446.5 MB, free: 29.05 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.3278, allocations: 0.625 kB / 446.5 MB, free: 29.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001326/0.3292, allocations: 0.5675 MB / 447 MB, free: 29 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.3292, allocations: 11.73 kB / 447.1 MB, free: 29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.3292, allocations: 0.9375 kB / 447.1 MB, free: 29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002481/0.3294, allocations: 61.11 kB / 447.1 MB, free: 29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002564/0.3297, allocations: 71.95 kB / 447.2 MB, free: 29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001168/0.3309, allocations: 1.722 MB / 448.9 MB, free: 27.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005053/0.3314, allocations: 69.58 kB / 449 MB, free: 27.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.039e-05/0.3314, allocations: 12.62 kB / 449 MB, free: 27.52 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.0006922/0.3321, allocations: 0.5832 MB / 449.6 MB, free: 27.4 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00016/0.3322, allocations: 171.8 kB / 449.7 MB, free: 27.35 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001021/0.3333, allocations: 0.5079 MB / 450.2 MB, free: 27.29 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.3333, allocations: 8.812 kB / 450.3 MB, free: 27.29 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-06/0.3333, allocations: 0.7031 kB / 450.3 MB, free: 27.29 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.3333, allocations: 2.672 kB / 450.3 MB, free: 27.29 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002373/0.3357, allocations: 1.681 MB / 451.9 MB, free: 26.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.878e-06/0.3357, allocations: 3.359 kB / 451.9 MB, free: 26.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002162/0.3359, allocations: 44.31 kB / 452 MB, free: 26.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001409/0.336, allocations: 50.48 kB / 452 MB, free: 26.93 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.336, allocations: 7.156 kB / 452 MB, free: 26.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001071/0.3371, allocations: 1.678 MB / 453.7 MB, free: 25.44 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3371, allocations: 0 / 453.7 MB, free: 25.44 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001298/0.3384, allocations: 0.7183 MB / 454.4 MB, free: 25.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007119/0.3391, allocations: 384.8 kB / 454.8 MB, free: 24.99 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000125/0.3392, allocations: 13.45 kB / 454.8 MB, free: 24.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003993/0.3396, allocations: 43.8 kB / 454.9 MB, free: 24.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.104e-05/0.3397, allocations: 34.33 kB / 454.9 MB, free: 24.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.718e-05/0.3397, allocations: 10.3 kB / 454.9 MB, free: 24.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002643/0.3424, allocations: 2.063 MB / 457 MB, free: 24.76 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3424, allocations: 0 / 457 MB, free: 24.76 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000677/0.3431, allocations: 201.8 kB / 457.2 MB, free: 24.74 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.002708/0.3458, allocations: 1.523 MB / 458.7 MB, free: 23.81 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009735/0.3467, allocations: 421.7 kB / 459.1 MB, free: 23.62 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3467, allocations: 3.438 kB / 459.1 MB, free: 23.62 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000459/0.3472, allocations: 261 kB / 459.4 MB, free: 23.47 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009608/0.3482, allocations: 232.1 kB / 459.6 MB, free: 23.36 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02439/0.3726, allocations: 17.52 MB / 477.1 MB, free: 16.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007102/0.3733, allocations: 1.355 MB / 478.5 MB, free: 15.26 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004642/0.3737, allocations: 239.9 kB / 478.7 MB, free: 15.06 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005006/0.3742, allocations: 0.5735 MB / 479.3 MB, free: 14.49 MB / 366.1 MB Notification: Performance of SimCode: time 9.41e-07/0.3742, allocations: 3.938 kB / 479.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1088/0.483, allocations: 32.81 MB / 0.5001 GB, free: 13.9 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.56/15.04, allocations: 7.219 kB / 0.5001 GB, free: 13.9 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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 18.74692240683362]