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.001348/0.001348, allocations: 121.3 kB / 18.5 MB, free: 4.578 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.001493/0.001493, allocations: 210.5 kB / 21.46 MB, free: 1.625 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.492/1.492, allocations: 230.2 MB / 254.5 MB, free: 15.41 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_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 0.001803/0.001803, allocations: 67.88 kB / 373.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1213, allocations: 53.33 MB / 426.7 MB, free: 5.035 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008792/0.1301, allocations: 6.092 MB / 432.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004506/0.1346, allocations: 2.314 MB / 435.1 MB, free: 12.59 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006353/0.1352, allocations: 15.94 kB / 435.1 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00157/0.1368, allocations: 0.634 MB / 435.7 MB, free: 11.94 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001058/0.1378, allocations: 445.7 kB / 436.1 MB, free: 11.5 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001026/0.1389, allocations: 414.2 kB / 436.5 MB, free: 11.1 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00197/0.1408, allocations: 1.312 MB / 437.9 MB, free: 9.781 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006616/0.1415, allocations: 341.8 kB / 438.2 MB, free: 9.43 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007439/0.1422, allocations: 0.4906 MB / 438.7 MB, free: 8.938 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007828/0.143, allocations: 0.6072 MB / 439.3 MB, free: 8.328 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001617/0.1432, allocations: 120 kB / 439.4 MB, free: 8.211 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003679/0.1436, allocations: 175.9 kB / 439.6 MB, free: 8.039 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005937/0.1442, allocations: 0.6544 MB / 440.2 MB, free: 7.383 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000933/0.1451, allocations: 0.8855 MB / 441.1 MB, free: 6.492 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00317/0.1483, allocations: 2.642 MB / 443.8 MB, free: 3.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.316e-06/0.1483, allocations: 0 / 443.8 MB, free: 3.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.1483, allocations: 0 / 443.8 MB, free: 3.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.702e-05/0.1483, allocations: 0 / 443.8 MB, free: 3.84 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005251/0.1536, allocations: 2.449 MB / 446.2 MB, free: 1.328 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.1536, allocations: 8.031 kB / 446.2 MB, free: 1.32 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001619/0.1538, allocations: 106.7 kB / 446.3 MB, free: 1.207 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003891/0.1542, allocations: 223.5 kB / 446.5 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2076/0.3617, allocations: 1.69 MB / 448.2 MB, free: 23 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001488/0.3619, allocations: 111 kB / 448.3 MB, free: 22.94 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/0.362, allocations: 59.95 kB / 448.4 MB, free: 22.94 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001406/0.3634, allocations: 0.8257 MB / 449.2 MB, free: 22.77 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.98e-05/0.3634, allocations: 6.219 kB / 449.2 MB, free: 22.77 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.807e-05/0.3635, allocations: 26.47 kB / 449.3 MB, free: 22.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.764e-05/0.3635, allocations: 21.16 kB / 449.3 MB, free: 22.77 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009376/0.3644, allocations: 0.5469 MB / 449.8 MB, free: 22.76 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006491/0.3709, allocations: 3.986 MB / 453.8 MB, free: 20.72 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001297/0.3722, allocations: 0.5029 MB / 454.3 MB, free: 20.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007588/0.373, allocations: 348.8 kB / 454.7 MB, free: 20.43 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.781e-05/0.373, allocations: 3.469 kB / 454.7 MB, free: 20.43 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.843e-05/0.373, allocations: 43.88 kB / 454.7 MB, free: 20.39 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.214e-06/0.373, allocations: 0 / 454.7 MB, free: 20.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002498/0.3755, allocations: 0.948 MB / 455.6 MB, free: 19.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.278e-05/0.3756, allocations: 271.2 kB / 455.9 MB, free: 19.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004426/0.38, allocations: 3.16 MB / 459.1 MB, free: 18.64 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.938e-05/0.3801, allocations: 36.77 kB / 459.1 MB, free: 18.61 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006427/0.3807, allocations: 0.8641 MB / 460 MB, free: 17.96 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.848e-05/0.3808, allocations: 121.5 kB / 460.1 MB, free: 17.89 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001507/0.381, allocations: 93.61 kB / 460.2 MB, free: 17.83 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.863e-05/0.3811, allocations: 327.8 kB / 460.5 MB, free: 17.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004691/0.3815, allocations: 209.6 kB / 460.7 MB, free: 17.45 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005503/0.3821, allocations: 393.5 kB / 461.1 MB, free: 17.17 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008822/0.383, allocations: 0.5222 MB / 461.6 MB, free: 16.87 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.383, allocations: 0 / 461.6 MB, free: 16.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.00179/0.3848, allocations: 0.7819 MB / 462.4 MB, free: 16.53 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.365e-05/0.3848, allocations: 6.906 kB / 462.4 MB, free: 16.53 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/0.3848, allocations: 5.078 kB / 462.4 MB, free: 16.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003289/0.3851, allocations: 67.84 kB / 462.5 MB, free: 16.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004678/0.3856, allocations: 122.1 kB / 462.6 MB, free: 16.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001493/0.3871, allocations: 1.788 MB / 464.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007852/0.3879, allocations: 79.55 kB / 464.5 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.534e-05/0.3879, allocations: 22.17 kB / 464.5 MB, free: 14.79 MB / 366.1 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.0009821/0.3889, allocations: 0.6575 MB / 465.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002781/0.3892, allocations: 192.6 kB / 465.3 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002653/0.3894, allocations: 218.3 kB / 465.5 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.3894, allocations: 6.234 kB / 465.5 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.044e-06/0.3894, allocations: 2.906 kB / 465.5 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.3895, allocations: 0 / 465.5 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003768/0.3932, allocations: 2.162 MB / 467.7 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.3932, allocations: 2.422 kB / 467.7 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003916/0.3936, allocations: 86.45 kB / 467.8 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002145/0.3938, allocations: 57.86 kB / 467.9 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.216e-05/0.3939, allocations: 9.5 kB / 467.9 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001224/0.3951, allocations: 1.743 MB / 469.6 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/0.3951, allocations: 1.531 kB / 469.6 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002037/0.3971, allocations: 0.9838 MB / 470.6 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001041/0.3982, allocations: 452.3 kB / 471 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001726/0.3983, allocations: 11.31 kB / 471 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005368/0.3989, allocations: 55.39 kB / 471.1 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001306/0.399, allocations: 41.97 kB / 471.1 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.868e-05/0.399, allocations: 12.72 kB / 471.2 MB, free: 10.85 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003597/0.4026, allocations: 2.258 MB / 473.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4026, allocations: 3.938 kB / 473.4 MB, free: 10.08 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001157/0.4038, allocations: 261.8 kB / 473.7 MB, free: 10.05 MB / 366.1 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.003746/0.4075, allocations: 1.895 MB / 475.6 MB, free: 8.957 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001365/0.4089, allocations: 0.5871 MB / 476.2 MB, free: 8.688 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/0.4089, allocations: 6.438 kB / 476.2 MB, free: 8.684 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006282/0.4095, allocations: 351.5 kB / 476.5 MB, free: 8.492 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001607/0.4111, allocations: 292.3 kB / 476.8 MB, free: 8.363 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03291/0.4441, allocations: 19.75 MB / 496.5 MB, free: 8.535 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002238/0.4463, allocations: 1.497 MB / 498 MB, free: 7.012 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001499/0.4478, allocations: 295.2 kB / 498.3 MB, free: 6.719 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001507/0.4493, allocations: 0.6438 MB / 499 MB, free: 6.074 MB / 382.1 MB Notification: Performance of SimCode: time 1.473e-06/0.4493, allocations: 0 / 499 MB, free: 6.074 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1162/0.5655, allocations: 36.5 MB / 0.5229 GB, free: 1.809 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.16/15.73, allocations: 2.5 kB / 0.5229 GB, free: 1.809 MB / 414.1 MB " [Timeout remaining time 644] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 19.75932021299377]