Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008106/0.0008106, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008851/0.0008851, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9141/0.9141, allocations: 177.2 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.154e-06/2.154e-06, allocations: 0 / 324.5 MB, free: 15.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.68e-05/2.895e-05, allocations: 6.219 kB / 324.5 MB, free: 15.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.005358/0.005387, allocations: 4.978 MB / 329.5 MB, free: 10.83 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002235/0.007621, allocations: 1.804 MB / 331.3 MB, free: 9.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002716/0.007893, allocations: 19.88 kB / 331.3 MB, free: 9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000791/0.008684, allocations: 0.5055 MB / 331.9 MB, free: 8.492 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005743/0.009258, allocations: 409.7 kB / 332.3 MB, free: 8.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006142/0.009872, allocations: 378.3 kB / 332.6 MB, free: 7.723 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007614/0.01063, allocations: 0.9157 MB / 333.5 MB, free: 6.801 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000317/0.01095, allocations: 217.3 kB / 333.8 MB, free: 6.586 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004793/0.01143, allocations: 0.5185 MB / 334.3 MB, free: 6.066 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003541/0.01178, allocations: 379.1 kB / 334.6 MB, free: 5.695 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.799e-05/0.01185, allocations: 76 kB / 334.7 MB, free: 5.621 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001409/0.01199, allocations: 123.9 kB / 334.8 MB, free: 5.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003325/0.01233, allocations: 0.6 MB / 335.4 MB, free: 4.898 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002883/0.01261, allocations: 430.6 kB / 335.9 MB, free: 4.477 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001292/0.01391, allocations: 2.068 MB / 337.9 MB, free: 2.398 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.944e-06/0.01391, allocations: 0 / 337.9 MB, free: 2.398 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.01391, allocations: 0 / 337.9 MB, free: 2.398 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.908e-05/0.01394, allocations: 0 / 337.9 MB, free: 2.398 MB / 298.7 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.00222/0.01616, allocations: 2.061 MB / 340 MB, free: 308 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.0162, allocations: 12.03 kB / 340 MB, free: 296 kB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.399e-05/0.01628, allocations: 86.7 kB / 340.1 MB, free: 200 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001945/0.01648, allocations: 199.6 kB / 340.3 MB, free: 0 / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001557/0.01803, allocations: 1.454 MB / 341.7 MB, free: 14.52 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.157e-05/0.01813, allocations: 92.72 kB / 341.8 MB, free: 14.41 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.527e-05/0.01818, allocations: 48 kB / 341.9 MB, free: 14.36 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008065/0.01899, allocations: 0.8435 MB / 342.7 MB, free: 13.42 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.019, allocations: 0 / 342.7 MB, free: 13.42 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.689e-05/0.01904, allocations: 20 kB / 342.7 MB, free: 13.4 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/0.01905, allocations: 12 kB / 342.7 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004776/0.01953, allocations: 347.7 kB / 343.1 MB, free: 13.04 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0029/0.02243, allocations: 2.927 MB / 346 MB, free: 10 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006241/0.02305, allocations: 358.5 kB / 346.4 MB, free: 9.645 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002851/0.02334, allocations: 172.8 kB / 346.5 MB, free: 9.473 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.651e-05/0.02336, allocations: 4 kB / 346.5 MB, free: 9.469 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.359e-05/0.02339, allocations: 34.56 kB / 346.6 MB, free: 9.426 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 1.463e-06/0.02339, allocations: 4 kB / 346.6 MB, free: 9.422 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.001043/0.02443, allocations: 0.6292 MB / 347.2 MB, free: 8.785 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.695e-05/0.02451, allocations: 213.6 kB / 347.4 MB, free: 8.527 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002353/0.02686, allocations: 2.904 MB / 350.3 MB, free: 5.578 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.455e-05/0.02689, allocations: 33.7 kB / 350.3 MB, free: 5.539 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004748/0.02736, allocations: 0.7822 MB / 351.1 MB, free: 4.746 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.524e-05/0.02741, allocations: 79.31 kB / 351.2 MB, free: 4.668 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.615e-05/0.02748, allocations: 69.98 kB / 351.3 MB, free: 4.594 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.11e-05/0.02756, allocations: 322 kB / 351.6 MB, free: 4.273 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000186/0.02775, allocations: 120.6 kB / 351.7 MB, free: 4.156 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000305/0.02806, allocations: 449.5 kB / 352.1 MB, free: 3.613 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004102/0.02847, allocations: 358.2 kB / 352.5 MB, free: 3.211 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.02847, allocations: 4 kB / 352.5 MB, free: 3.207 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000654/0.02912, allocations: 0.5606 MB / 353.1 MB, free: 2.637 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.02914, allocations: 10.81 kB / 353.1 MB, free: 2.629 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.02915, allocations: 4 kB / 353.1 MB, free: 2.625 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001999/0.02935, allocations: 65.08 kB / 353.1 MB, free: 2.559 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001519/0.0295, allocations: 71.89 kB / 353.2 MB, free: 2.488 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001056/0.03055, allocations: 1.613 MB / 354.8 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002157/0.03077, allocations: 55.7 kB / 354.9 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.832e-05/0.03079, allocations: 16 kB / 354.9 MB, free: 0.6953 MB / 314.7 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.0004375/0.03122, allocations: 0.5834 MB / 355.5 MB, free: 104 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001371/0.03136, allocations: 174.8 kB / 355.6 MB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006415/0.032, allocations: 0.5066 MB / 356.2 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.03201, allocations: 4 kB / 356.2 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-06/0.03201, allocations: 3.938 kB / 356.2 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.267e-06/0.03201, allocations: 0 / 356.2 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001492/0.0335, allocations: 1.495 MB / 357.7 MB, free: 13.85 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.03351, allocations: 12.05 kB / 357.7 MB, free: 13.84 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001198/0.03363, allocations: 47.91 kB / 357.7 MB, free: 13.79 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.746e-05/0.03372, allocations: 44.83 kB / 357.8 MB, free: 13.74 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/0.03374, allocations: 8.031 kB / 357.8 MB, free: 13.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008439/0.03458, allocations: 1.554 MB / 359.3 MB, free: 12.06 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.03458, allocations: 0 / 359.3 MB, free: 12.06 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007854/0.03537, allocations: 0.7188 MB / 360 MB, free: 11.32 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003474/0.03572, allocations: 322.9 kB / 360.4 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.099e-05/0.03579, allocations: 4 kB / 360.4 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002182/0.03601, allocations: 47.89 kB / 360.4 MB, free: 10.95 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.971e-05/0.03608, allocations: 39.92 kB / 360.4 MB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.768e-06/0.03608, allocations: 4 kB / 360.4 MB, free: 10.91 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001648/0.03773, allocations: 2.075 MB / 362.5 MB, free: 8.812 MB / 330.7 MB Notification: Performance of sort global known variables: time 1e-07/0.03773, allocations: 0 / 362.5 MB, free: 8.812 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004475/0.03818, allocations: 199.7 kB / 362.7 MB, free: 8.617 MB / 330.7 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.001599/0.03978, allocations: 1.546 MB / 364.3 MB, free: 7.195 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006102/0.04039, allocations: 434.9 kB / 364.7 MB, free: 6.758 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.04039, allocations: 4 kB / 364.7 MB, free: 6.754 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002765/0.04067, allocations: 262.6 kB / 364.9 MB, free: 6.484 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006335/0.0413, allocations: 229.1 kB / 365.2 MB, free: 6.262 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02434/0.06564, allocations: 17.73 MB / 382.9 MB, free: 4.203 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006345/0.06627, allocations: 0.7668 MB / 383.7 MB, free: 3.398 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0004281/0.0667, allocations: 242.9 kB / 383.9 MB, free: 3.156 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005099/0.06721, allocations: 0.5784 MB / 384.5 MB, free: 2.578 MB / 346.7 MB Notification: Performance of SimCode: time 6.01e-07/0.06721, allocations: 0 / 384.5 MB, free: 2.578 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0511/0.1183, allocations: 34.68 MB / 419.2 MB, free: 72 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.754/8.873, allocations: 6.875 kB / 419.2 MB, free: 68 kB / 378.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 10.865691549144685]