Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008095/0.0008095, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000824/0.000824, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9302/0.9302, allocations: 177 MB / 204.1 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.896e-05/2.052e-05, allocations: 2.281 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.004844/0.004865, allocations: 5.404 MB / 329.9 MB, free: 10.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002414/0.007279, allocations: 2.2 MB / 332.1 MB, free: 8.246 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002532/0.007532, allocations: 23.88 kB / 332.1 MB, free: 8.223 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009306/0.008463, allocations: 0.6104 MB / 332.7 MB, free: 7.609 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005245/0.008987, allocations: 465.3 kB / 333.2 MB, free: 7.152 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005214/0.009509, allocations: 413.5 kB / 333.6 MB, free: 6.754 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009431/0.01045, allocations: 1.348 MB / 334.9 MB, free: 5.402 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003705/0.01082, allocations: 298.4 kB / 335.2 MB, free: 5.102 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009042/0.01173, allocations: 0.7134 MB / 335.9 MB, free: 4.387 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004137/0.01214, allocations: 0.5144 MB / 336.5 MB, free: 3.871 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.084e-05/0.01223, allocations: 116 kB / 336.6 MB, free: 3.758 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001816/0.01241, allocations: 183.8 kB / 336.8 MB, free: 3.578 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003125/0.01273, allocations: 0.6623 MB / 337.4 MB, free: 2.914 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003535/0.01308, allocations: 0.5297 MB / 337.9 MB, free: 2.383 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001629/0.01471, allocations: 2.586 MB / 340.5 MB, free: 15.79 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.513e-06/0.01471, allocations: 0 / 340.5 MB, free: 15.79 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.023e-06/0.01472, allocations: 0 / 340.5 MB, free: 15.79 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.966e-05/0.01479, allocations: 4 kB / 340.5 MB, free: 15.78 MB / 314.7 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.003065/0.01785, allocations: 2.342 MB / 342.9 MB, free: 13.39 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.01789, allocations: 11.98 kB / 342.9 MB, free: 13.38 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.812e-05/0.01799, allocations: 110.7 kB / 343 MB, free: 13.27 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002454/0.01824, allocations: 223.5 kB / 343.2 MB, free: 13.05 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001783/0.02002, allocations: 1.639 MB / 344.9 MB, free: 11.35 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001374/0.02016, allocations: 178.4 kB / 345 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.025e-05/0.02023, allocations: 64.33 kB / 345.1 MB, free: 11.09 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001112/0.02134, allocations: 1.185 MB / 346.3 MB, free: 9.762 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.02135, allocations: 0 / 346.3 MB, free: 9.762 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.686e-05/0.0214, allocations: 31.98 kB / 346.3 MB, free: 9.73 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.02141, allocations: 19.94 kB / 346.3 MB, free: 9.711 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000705/0.02212, allocations: 0.5555 MB / 346.9 MB, free: 9.156 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003817/0.02593, allocations: 3.6 MB / 350.5 MB, free: 5.445 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008439/0.02678, allocations: 0.4984 MB / 351 MB, free: 4.938 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005557/0.02733, allocations: 342.5 kB / 351.3 MB, free: 4.602 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.583e-05/0.02736, allocations: 8.281 kB / 351.3 MB, free: 4.594 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.097e-05/0.02739, allocations: 38.84 kB / 351.4 MB, free: 4.547 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 2.054e-06/0.02739, allocations: 0 / 351.4 MB, free: 4.547 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.00146/0.02885, allocations: 0.8736 MB / 352.2 MB, free: 3.664 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.039e-05/0.02894, allocations: 265 kB / 352.5 MB, free: 3.344 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003177/0.03212, allocations: 3.172 MB / 355.7 MB, free: 140 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.171e-05/0.03218, allocations: 33.7 kB / 355.7 MB, free: 100 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005622/0.03274, allocations: 0.8654 MB / 356.6 MB, free: 15.22 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.013e-05/0.03282, allocations: 115 kB / 356.7 MB, free: 15.11 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001157/0.03294, allocations: 94.11 kB / 356.8 MB, free: 15.01 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.7e-05/0.03303, allocations: 326 kB / 357.1 MB, free: 14.69 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003084/0.03333, allocations: 216.8 kB / 357.3 MB, free: 14.48 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004353/0.03377, allocations: 0.5809 MB / 357.9 MB, free: 13.77 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005922/0.03436, allocations: 0.5245 MB / 358.4 MB, free: 13.2 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.03437, allocations: 0 / 358.4 MB, free: 13.2 MB / 330.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001179/0.03555, allocations: 0.7779 MB / 359.2 MB, free: 12.41 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.03557, allocations: 8 kB / 359.2 MB, free: 12.4 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.03557, allocations: 4 kB / 359.2 MB, free: 12.4 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002327/0.03581, allocations: 72.94 kB / 359.3 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000262/0.03607, allocations: 111.8 kB / 359.4 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001341/0.03741, allocations: 1.695 MB / 361.1 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004407/0.03785, allocations: 71.59 kB / 361.1 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.072e-05/0.03788, allocations: 20 kB / 361.2 MB, free: 10.32 MB / 330.7 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.0007666/0.03865, allocations: 0.6537 MB / 361.8 MB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00015/0.0388, allocations: 190.7 kB / 362 MB, free: 9.465 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001785/0.03898, allocations: 226.7 kB / 362.2 MB, free: 9.246 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.03898, allocations: 3.938 kB / 362.2 MB, free: 9.242 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.03898, allocations: 4 kB / 362.2 MB, free: 9.238 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.03899, allocations: 3.984 kB / 362.2 MB, free: 9.234 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002258/0.04125, allocations: 1.908 MB / 364.1 MB, free: 7.262 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.04125, allocations: 0 / 364.1 MB, free: 7.262 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002145/0.04146, allocations: 87.88 kB / 364.2 MB, free: 7.176 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001331/0.0416, allocations: 52.83 kB / 364.3 MB, free: 7.121 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.319e-05/0.04162, allocations: 11.98 kB / 364.3 MB, free: 7.109 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001006/0.04263, allocations: 1.625 MB / 365.9 MB, free: 5.371 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.04263, allocations: 3.938 kB / 365.9 MB, free: 5.367 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001345/0.04397, allocations: 0.9959 MB / 366.9 MB, free: 4.344 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004646/0.04444, allocations: 378.5 kB / 367.3 MB, free: 3.973 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.789e-05/0.04454, allocations: 12 kB / 367.3 MB, free: 3.961 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002846/0.04482, allocations: 59.94 kB / 367.4 MB, free: 3.902 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.82e-05/0.04491, allocations: 39.88 kB / 367.4 MB, free: 3.863 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.668e-05/0.04493, allocations: 8 kB / 367.4 MB, free: 3.855 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002077/0.047, allocations: 2.259 MB / 369.7 MB, free: 1.578 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-08/0.047, allocations: 0 / 369.7 MB, free: 1.578 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006297/0.04763, allocations: 259.6 kB / 369.9 MB, free: 1.324 MB / 330.7 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.002065/0.0497, allocations: 1.912 MB / 371.8 MB, free: 15.55 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008642/0.05056, allocations: 0.5894 MB / 372.4 MB, free: 14.95 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.05057, allocations: 3.938 kB / 372.4 MB, free: 14.95 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003828/0.05095, allocations: 354.3 kB / 372.8 MB, free: 14.59 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008013/0.05175, allocations: 297.5 kB / 373.1 MB, free: 14.3 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0321/0.08385, allocations: 19.93 MB / 393 MB, free: 10.06 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007597/0.0846, allocations: 0.9044 MB / 393.9 MB, free: 9.125 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006864/0.08529, allocations: 299.3 kB / 394.2 MB, free: 8.828 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005868/0.08588, allocations: 0.6448 MB / 394.8 MB, free: 8.184 MB / 362.7 MB Notification: Performance of SimCode: time 1.312e-06/0.08588, allocations: 0 / 394.8 MB, free: 8.184 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05494/0.1408, allocations: 38.33 MB / 433.2 MB, free: 2.012 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.077/9.218, allocations: 4.062 kB / 433.2 MB, free: 2.008 MB / 394.7 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,cell.cell.limIntegrator.y,cell.limIntegrator.y,energy.y Variables in the result:time,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,cell.cell.limIntegrator.y,cell.limIntegrator.y,energy.y [Calling sys.exit(0), Time elapsed: 11.36953352484852]