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.002049/0.002049, allocations: 131.4 kB / 17.8 MB, free: 5.219 MB / 14.72 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.002224/0.002224, allocations: 211.6 kB / 20.75 MB, free: 2.27 MB / 14.72 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 1.573/1.573, allocations: 230.4 MB / 254 MB, free: 15.17 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001864/0.001864, allocations: 64.08 kB / 373 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1126, allocations: 53.38 MB / 426.3 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007571/0.1202, allocations: 5.569 MB / 431.9 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003335/0.1235, allocations: 1.882 MB / 433.8 MB, free: 13.15 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003966/0.1239, allocations: 19.88 kB / 433.8 MB, free: 13.13 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001072/0.125, allocations: 0.5213 MB / 434.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007322/0.1257, allocations: 398 kB / 434.7 MB, free: 12.22 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008037/0.1265, allocations: 367.7 kB / 435.1 MB, free: 11.86 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009671/0.1275, allocations: 0.8925 MB / 436 MB, free: 10.97 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004227/0.1279, allocations: 240.8 kB / 436.2 MB, free: 10.72 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004375/0.1284, allocations: 370.8 kB / 436.6 MB, free: 10.36 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005333/0.1289, allocations: 470.3 kB / 437 MB, free: 9.898 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000109/0.129, allocations: 84 kB / 437.1 MB, free: 9.816 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002061/0.1292, allocations: 123.9 kB / 437.2 MB, free: 9.695 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004715/0.1297, allocations: 0.5766 MB / 437.8 MB, free: 9.117 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006368/0.1303, allocations: 0.7454 MB / 438.6 MB, free: 8.367 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002175/0.1325, allocations: 2.136 MB / 440.7 MB, free: 6.223 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.1325, allocations: 0 / 440.7 MB, free: 6.223 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1325, allocations: 0 / 440.7 MB, free: 6.223 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.206e-05/0.1325, allocations: 0 / 440.7 MB, free: 6.223 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.003433/0.136, allocations: 2.149 MB / 442.8 MB, free: 4.016 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.136, allocations: 12.03 kB / 442.9 MB, free: 4.004 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001197/0.1361, allocations: 94.7 kB / 442.9 MB, free: 3.902 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000292/0.1364, allocations: 191.7 kB / 443.1 MB, free: 3.715 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002302/0.1387, allocations: 1.515 MB / 444.7 MB, free: 2.156 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.312e-05/0.1388, allocations: 70.83 kB / 444.7 MB, free: 2.082 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.831e-05/0.1389, allocations: 47.98 kB / 444.8 MB, free: 2.035 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001083/0.14, allocations: 0.5893 MB / 445.4 MB, free: 1.398 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/0.14, allocations: 0 / 445.4 MB, free: 1.398 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.724e-05/0.14, allocations: 24 kB / 445.4 MB, free: 1.375 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.324e-05/0.14, allocations: 16 kB / 445.4 MB, free: 1.359 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007517/0.1408, allocations: 339.8 kB / 445.7 MB, free: 1.027 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2238/0.3646, allocations: 3.237 MB / 449 MB, free: 22.58 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001143/0.3658, allocations: 360.6 kB / 449.3 MB, free: 22.56 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004689/0.3662, allocations: 174.9 kB / 449.5 MB, free: 22.55 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.193e-05/0.3663, allocations: 3.406 kB / 449.5 MB, free: 22.55 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.244e-05/0.3663, allocations: 37.55 kB / 449.5 MB, free: 22.51 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 2.354e-06/0.3663, allocations: 0.75 kB / 449.5 MB, free: 22.51 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.00188/0.3682, allocations: 0.7029 MB / 450.2 MB, free: 22.37 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.627e-05/0.3682, allocations: 212.9 kB / 450.4 MB, free: 22.12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00383/0.3721, allocations: 2.901 MB / 453.3 MB, free: 21.37 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.58e-05/0.3721, allocations: 32.02 kB / 453.4 MB, free: 21.34 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006068/0.3727, allocations: 0.7883 MB / 454.2 MB, free: 20.75 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.922e-05/0.3728, allocations: 79.39 kB / 454.2 MB, free: 20.7 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001151/0.3729, allocations: 71.91 kB / 454.3 MB, free: 20.65 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.229e-05/0.3729, allocations: 321.6 kB / 454.6 MB, free: 20.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003655/0.3733, allocations: 121.7 kB / 454.7 MB, free: 20.3 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004246/0.3737, allocations: 285.6 kB / 455 MB, free: 20.08 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000698/0.3744, allocations: 362.3 kB / 455.4 MB, free: 19.87 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.3744, allocations: 1.062 kB / 455.4 MB, free: 19.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001355/0.3758, allocations: 0.5689 MB / 455.9 MB, free: 19.62 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.3758, allocations: 8.625 kB / 456 MB, free: 19.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.3758, allocations: 9.391 kB / 456 MB, free: 19.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002755/0.3761, allocations: 60.17 kB / 456 MB, free: 19.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002961/0.3764, allocations: 78.2 kB / 456.1 MB, free: 19.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001327/0.3777, allocations: 1.724 MB / 457.8 MB, free: 17.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004962/0.3782, allocations: 62.64 kB / 457.9 MB, free: 17.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.598e-05/0.3782, allocations: 12.52 kB / 457.9 MB, free: 17.95 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.0006537/0.3789, allocations: 0.5775 MB / 458.5 MB, free: 17.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001889/0.3791, allocations: 176 kB / 458.6 MB, free: 17.58 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001194/0.3803, allocations: 0.5174 MB / 459.2 MB, free: 17.4 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.3803, allocations: 2.125 kB / 459.2 MB, free: 17.4 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.384e-06/0.3803, allocations: 4 kB / 459.2 MB, free: 17.4 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.3803, allocations: 2.359 kB / 459.2 MB, free: 17.4 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002673/0.383, allocations: 1.682 MB / 460.8 MB, free: 16.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.383, allocations: 4.062 kB / 460.9 MB, free: 16.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002418/0.3832, allocations: 45.52 kB / 460.9 MB, free: 16.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001772/0.3834, allocations: 51.42 kB / 460.9 MB, free: 16.6 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.092e-05/0.3834, allocations: 11.02 kB / 461 MB, free: 16.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001148/0.3846, allocations: 1.673 MB / 462.6 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.3846, allocations: 0.75 kB / 462.6 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001567/0.3861, allocations: 0.7199 MB / 463.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005674/0.3867, allocations: 395.9 kB / 463.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001275/0.3868, allocations: 3.562 kB / 463.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004426/0.3873, allocations: 42.36 kB / 463.8 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.3874, allocations: 32.06 kB / 463.8 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.863e-05/0.3874, allocations: 10.64 kB / 463.8 MB, free: 14.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003263/0.3907, allocations: 2.075 MB / 465.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3907, allocations: 0 / 465.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000921/0.3916, allocations: 199.2 kB / 466.1 MB, free: 13.61 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.002946/0.3945, allocations: 1.523 MB / 467.6 MB, free: 12.65 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001097/0.3956, allocations: 423 kB / 468 MB, free: 12.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/0.3956, allocations: 5.594 kB / 468 MB, free: 12.44 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005471/0.3962, allocations: 258.3 kB / 468.3 MB, free: 12.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001286/0.3975, allocations: 230.5 kB / 468.5 MB, free: 12.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02762/0.4251, allocations: 17.55 MB / 486.1 MB, free: 2.648 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007164/0.4258, allocations: 1.363 MB / 487.4 MB, free: 1.258 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004941/0.4263, allocations: 237.9 kB / 487.7 MB, free: 1.023 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005635/0.4269, allocations: 0.5813 MB / 488.2 MB, free: 452 kB / 366.1 MB Notification: Performance of SimCode: time 8.02e-07/0.4269, allocations: 0 / 488.2 MB, free: 452 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08243/0.5093, allocations: 32.88 MB / 0.5089 GB, free: 15.74 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.99/15.5, allocations: 8.484 kB / 0.5089 GB, free: 15.73 MB / 414.1 MB " [Timeout remaining time 644] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/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: 18.64883517404087]