Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.001163/0.001163, 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.0008409/0.0008409, 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.8815/0.8815, allocations: 177 MB / 204.1 MB, free: 5.762 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_Cell,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.512e-05/1.674e-05, allocations: 2.281 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.004381/0.004398, allocations: 4.96 MB / 329.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001958/0.006356, allocations: 1.807 MB / 331.3 MB, free: 9.102 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002331/0.006589, allocations: 15.94 kB / 331.3 MB, free: 9.086 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007126/0.007302, allocations: 0.5133 MB / 331.8 MB, free: 8.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004428/0.007745, allocations: 401.8 kB / 332.2 MB, free: 8.176 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004479/0.008192, allocations: 370.5 kB / 332.6 MB, free: 7.816 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006311/0.008824, allocations: 0.9196 MB / 333.5 MB, free: 6.891 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003049/0.009128, allocations: 225.4 kB / 333.7 MB, free: 6.668 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003745/0.009503, allocations: 0.5223 MB / 334.2 MB, free: 6.145 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003004/0.009803, allocations: 379 kB / 334.6 MB, free: 5.773 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.226e-05/0.009866, allocations: 76 kB / 334.7 MB, free: 5.699 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001243/0.00999, allocations: 123.9 kB / 334.8 MB, free: 5.578 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002935/0.01028, allocations: 0.5961 MB / 335.4 MB, free: 4.98 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002676/0.01055, allocations: 426.7 kB / 335.8 MB, free: 4.562 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001179/0.01173, allocations: 2.064 MB / 337.9 MB, free: 2.492 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.01173, allocations: 0 / 337.9 MB, free: 2.492 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.01173, allocations: 0 / 337.9 MB, free: 2.492 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.262e-05/0.01175, allocations: 0 / 337.9 MB, free: 2.492 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.001922/0.01367, allocations: 2.066 MB / 339.9 MB, free: 392 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.01371, allocations: 11.98 kB / 339.9 MB, free: 380 kB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.367e-05/0.01378, allocations: 90.7 kB / 340 MB, free: 280 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001542/0.01393, allocations: 195.7 kB / 340.2 MB, free: 84 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001481/0.01542, allocations: 1.454 MB / 341.7 MB, free: 14.6 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.567e-05/0.01549, allocations: 92.95 kB / 341.8 MB, free: 14.49 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.822e-05/0.01554, allocations: 48.38 kB / 341.8 MB, free: 14.45 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006826/0.01622, allocations: 0.8441 MB / 342.6 MB, free: 13.49 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.01623, allocations: 0 / 342.6 MB, free: 13.49 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.543e-05/0.01627, allocations: 24 kB / 342.7 MB, free: 13.47 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.01628, allocations: 12 kB / 342.7 MB, free: 13.46 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000415/0.01669, allocations: 347.7 kB / 343 MB, free: 13.12 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002728/0.01942, allocations: 2.931 MB / 346 MB, free: 10.07 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005909/0.02001, allocations: 357.8 kB / 346.3 MB, free: 9.723 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002748/0.02029, allocations: 184.6 kB / 346.5 MB, free: 9.539 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.244e-05/0.02031, allocations: 4 kB / 346.5 MB, free: 9.535 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.997e-05/0.02033, allocations: 38.56 kB / 346.5 MB, free: 9.488 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 1.272e-06/0.02033, allocations: 0 / 346.5 MB, free: 9.488 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009599/0.02129, allocations: 0.622 MB / 347.1 MB, free: 8.855 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.924e-05/0.02136, allocations: 217.6 kB / 347.4 MB, free: 8.594 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002162/0.02352, allocations: 2.901 MB / 350.3 MB, free: 5.648 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.157e-05/0.02354, allocations: 33.7 kB / 350.3 MB, free: 5.609 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004574/0.024, allocations: 0.79 MB / 351.1 MB, free: 4.809 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.428e-05/0.02404, allocations: 79.31 kB / 351.2 MB, free: 4.73 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.204e-05/0.02412, allocations: 69.98 kB / 351.2 MB, free: 4.656 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.367e-05/0.02419, allocations: 318 kB / 351.5 MB, free: 4.34 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001768/0.02437, allocations: 124.6 kB / 351.7 MB, free: 4.219 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005365/0.0249, allocations: 443.1 kB / 352.1 MB, free: 3.68 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003907/0.02529, allocations: 363 kB / 352.4 MB, free: 3.273 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.0253, allocations: 0 / 352.4 MB, free: 3.273 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006141/0.02591, allocations: 0.5554 MB / 353 MB, free: 2.707 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.02593, allocations: 12.44 kB / 353 MB, free: 2.695 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.02593, allocations: 8 kB / 353 MB, free: 2.688 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001799/0.02611, allocations: 52.83 kB / 353.1 MB, free: 2.633 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001562/0.02627, allocations: 79.83 kB / 353.2 MB, free: 2.555 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001073/0.02734, allocations: 1.609 MB / 354.8 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002234/0.02757, allocations: 55.7 kB / 354.8 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.873e-05/0.02758, allocations: 16 kB / 354.8 MB, free: 0.7656 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.0004478/0.02803, allocations: 0.5865 MB / 355.4 MB, free: 176 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001242/0.02816, allocations: 166.9 kB / 355.6 MB, free: 8 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000652/0.02881, allocations: 0.5142 MB / 356.1 MB, free: 15.48 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.02881, allocations: 0 / 356.1 MB, free: 15.48 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.02881, allocations: 0 / 356.1 MB, free: 15.48 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.02882, allocations: 0 / 356.1 MB, free: 15.48 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001513/0.03033, allocations: 1.502 MB / 357.6 MB, free: 13.92 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-06/0.03033, allocations: 11.91 kB / 357.6 MB, free: 13.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001188/0.03045, allocations: 43.97 kB / 357.7 MB, free: 13.86 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001035/0.03056, allocations: 52.86 kB / 357.7 MB, free: 13.81 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.393e-05/0.03057, allocations: 3.938 kB / 357.7 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001236/0.03181, allocations: 1.554 MB / 359.3 MB, free: 12.13 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.03181, allocations: 8.031 kB / 359.3 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008426/0.03265, allocations: 0.7041 MB / 360 MB, free: 11.39 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003764/0.03303, allocations: 322.7 kB / 360.3 MB, free: 11.08 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.311e-05/0.03311, allocations: 15.94 kB / 360.3 MB, free: 11.06 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002207/0.03333, allocations: 43.95 kB / 360.3 MB, free: 11.02 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.52e-05/0.03341, allocations: 35.88 kB / 360.4 MB, free: 10.98 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.03343, allocations: 8 kB / 360.4 MB, free: 10.98 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001706/0.03514, allocations: 2.071 MB / 362.5 MB, free: 8.883 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.03514, allocations: 0 / 362.5 MB, free: 8.883 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004749/0.03561, allocations: 207.7 kB / 362.7 MB, free: 8.68 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.001772/0.03738, allocations: 1.531 MB / 364.2 MB, free: 7.242 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006362/0.03802, allocations: 431.1 kB / 364.6 MB, free: 6.809 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.03802, allocations: 4 kB / 364.6 MB, free: 6.805 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002791/0.0383, allocations: 257.4 kB / 364.9 MB, free: 6.543 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006186/0.03892, allocations: 229.9 kB / 365.1 MB, free: 6.32 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02464/0.06356, allocations: 17.73 MB / 382.8 MB, free: 4.246 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005844/0.06414, allocations: 0.7707 MB / 383.6 MB, free: 3.438 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000356/0.0645, allocations: 242.9 kB / 383.8 MB, free: 3.195 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004888/0.06499, allocations: 0.5784 MB / 384.4 MB, free: 2.617 MB / 346.7 MB Notification: Performance of SimCode: time 1.192e-06/0.06499, allocations: 0 / 384.4 MB, free: 2.617 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05454/0.1195, allocations: 34.67 MB / 419.1 MB, free: 88 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.663/8.783, allocations: 4.062 kB / 419.1 MB, free: 84 kB / 378.7 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.743721704930067]