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.001965/0.001965, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001757/0.001757, allocations: 212.7 kB / 24.52 MB, free: 3.91 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.49/1.49, allocations: 230.5 MB / 258.2 MB, free: 7.793 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 67.89 kB / 378.5 MB, free: 2.828 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2447/0.2465, allocations: 53.41 MB / 431.9 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008229/0.2548, allocations: 5.396 MB / 437.3 MB, free: 1.047 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004108/0.2589, allocations: 2.174 MB / 439.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00066/0.2595, allocations: 23.81 kB / 439.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001679/0.2612, allocations: 0.6069 MB / 440.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001045/0.2623, allocations: 461.6 kB / 440.6 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000913/0.2632, allocations: 414.5 kB / 441 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001588/0.2648, allocations: 1.306 MB / 442.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005632/0.2653, allocations: 310.4 kB / 442.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006324/0.266, allocations: 0.5061 MB / 443.1 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007286/0.2667, allocations: 0.6111 MB / 443.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001642/0.2668, allocations: 116 kB / 443.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003344/0.2672, allocations: 172 kB / 444 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005557/0.2677, allocations: 0.6583 MB / 444.6 MB, free: 9.688 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007357/0.2685, allocations: 0.6758 MB / 445.3 MB, free: 9.008 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002658/0.2711, allocations: 2.658 MB / 448 MB, free: 6.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.2711, allocations: 3.984 kB / 448 MB, free: 6.336 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2711, allocations: 3.938 kB / 448 MB, free: 6.332 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.042e-05/0.2712, allocations: 0 / 448 MB, free: 6.332 MB / 350.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.004386/0.2756, allocations: 2.358 MB / 450.3 MB, free: 3.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/0.2756, allocations: 8.031 kB / 450.3 MB, free: 3.922 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.522e-05/0.2756, allocations: 17.5 kB / 450.3 MB, free: 3.902 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001384/0.2758, allocations: 118.6 kB / 450.5 MB, free: 3.777 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003411/0.2761, allocations: 231.4 kB / 450.7 MB, free: 3.551 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002727/0.2788, allocations: 1.628 MB / 452.3 MB, free: 1.867 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000191/0.279, allocations: 193.8 kB / 452.5 MB, free: 1.648 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/0.2791, allocations: 67.89 kB / 452.6 MB, free: 1.582 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001744/0.2809, allocations: 1.177 MB / 453.8 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.2809, allocations: 0 / 453.8 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.065e-05/0.281, allocations: 28 kB / 453.8 MB, free: 244 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.628e-05/0.281, allocations: 12 kB / 453.8 MB, free: 232 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001082/0.2821, allocations: 0.5555 MB / 454.3 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005906/0.288, allocations: 3.607 MB / 458 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00131/0.2893, allocations: 0.5071 MB / 458.5 MB, free: 11.44 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007529/0.29, allocations: 341.6 kB / 458.8 MB, free: 11.1 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.732e-05/0.2901, allocations: 8.281 kB / 458.8 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.125e-05/0.2901, allocations: 46.77 kB / 458.8 MB, free: 11.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 1.963e-06/0.2901, allocations: 0 / 458.8 MB, free: 11.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002386/0.2925, allocations: 0.8696 MB / 459.7 MB, free: 10.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001461/0.2926, allocations: 269 kB / 460 MB, free: 9.836 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004263/0.2969, allocations: 3.16 MB / 463.1 MB, free: 6.641 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.905e-05/0.297, allocations: 33.7 kB / 463.2 MB, free: 6.602 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008492/0.2978, allocations: 0.8615 MB / 464 MB, free: 5.734 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001344/0.298, allocations: 127 kB / 464.2 MB, free: 5.609 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001839/0.2982, allocations: 90.16 kB / 464.2 MB, free: 5.516 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.2983, allocations: 326 kB / 464.6 MB, free: 5.191 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005202/0.2988, allocations: 212.9 kB / 464.8 MB, free: 4.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007548/0.2996, allocations: 0.585 MB / 465.4 MB, free: 4.273 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001018/0.3006, allocations: 0.5165 MB / 465.9 MB, free: 3.707 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.915e-06/0.3006, allocations: 4 kB / 465.9 MB, free: 3.703 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002059/0.3027, allocations: 0.7895 MB / 466.7 MB, free: 2.902 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.3027, allocations: 4 kB / 466.7 MB, free: 2.898 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.3027, allocations: 4 kB / 466.7 MB, free: 2.895 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003385/0.303, allocations: 65 kB / 466.7 MB, free: 2.828 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004801/0.3035, allocations: 115.9 kB / 466.9 MB, free: 2.715 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002039/0.3056, allocations: 1.687 MB / 468.5 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009572/0.3065, allocations: 71.59 kB / 468.6 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.905e-05/0.3066, allocations: 16 kB / 468.6 MB, free: 0.8281 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.001042/0.3076, allocations: 0.661 MB / 469.3 MB, free: 164 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003527/0.308, allocations: 198.7 kB / 469.5 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003139/0.3083, allocations: 218.7 kB / 469.7 MB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.3083, allocations: 11.94 kB / 469.7 MB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.045e-06/0.3083, allocations: 0 / 469.7 MB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.3083, allocations: 3.984 kB / 469.7 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003533/0.3118, allocations: 1.912 MB / 471.6 MB, free: 13.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.3118, allocations: 3.938 kB / 471.6 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004208/0.3122, allocations: 83.88 kB / 471.7 MB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002263/0.3125, allocations: 60.75 kB / 471.8 MB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.629e-05/0.3125, allocations: 11.98 kB / 471.8 MB, free: 13.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001723/0.3142, allocations: 1.629 MB / 473.4 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.3142, allocations: 4.031 kB / 473.4 MB, free: 11.85 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002188/0.3164, allocations: 0.9878 MB / 474.4 MB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009997/0.3174, allocations: 378.5 kB / 474.8 MB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002301/0.3177, allocations: 8 kB / 474.8 MB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005747/0.3182, allocations: 55.94 kB / 474.8 MB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001305/0.3184, allocations: 39.94 kB / 474.9 MB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.375e-05/0.3184, allocations: 12 kB / 474.9 MB, free: 10.35 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003628/0.322, allocations: 2.259 MB / 477.1 MB, free: 8.07 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.322, allocations: 0 / 477.1 MB, free: 8.07 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009735/0.323, allocations: 251.6 kB / 477.4 MB, free: 7.824 MB / 382.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.004125/0.3271, allocations: 1.92 MB / 479.3 MB, free: 6.047 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001443/0.3286, allocations: 0.5932 MB / 479.9 MB, free: 5.441 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.723e-06/0.3286, allocations: 8.062 kB / 479.9 MB, free: 5.434 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000678/0.3292, allocations: 354.5 kB / 480.3 MB, free: 5.074 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001497/0.3307, allocations: 289.6 kB / 480.5 MB, free: 4.793 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03108/0.3618, allocations: 19.74 MB / 0.4886 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0012/0.363, allocations: 0.9121 MB / 0.4894 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009472/0.364, allocations: 299.2 kB / 0.4897 GB, free: 15.5 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009221/0.3649, allocations: 0.6438 MB / 0.4904 GB, free: 14.86 MB / 414.1 MB Notification: Performance of SimCode: time 1.312e-06/0.3649, allocations: 0 / 0.4904 GB, free: 14.86 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08413/0.449, allocations: 37.73 MB / 0.5272 GB, free: 9.32 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.84/16.29, allocations: 19.2 kB / 0.5272 GB, free: 9.305 MB / 446.1 MB " [Timeout remaining time 643] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins1/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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 21.35041850397829]