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.001346/0.001346, allocations: 120.1 kB / 18.49 MB, free: 4.59 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.001437/0.001437, allocations: 214.2 kB / 21.45 MB, free: 1.637 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.504/1.504, allocations: 230.5 MB / 254.7 MB, free: 15.03 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.001971/0.001971, allocations: 63.89 kB / 373.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1072, allocations: 53.37 MB / 427 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.2057/0.3129, allocations: 6.081 MB / 433.1 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003495/0.3164, allocations: 2.323 MB / 435.4 MB, free: 7.344 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005108/0.3169, allocations: 24.5 kB / 435.5 MB, free: 7.332 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001395/0.3183, allocations: 0.6254 MB / 436.1 MB, free: 7.156 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007556/0.319, allocations: 449.9 kB / 436.5 MB, free: 6.984 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007543/0.3198, allocations: 406.3 kB / 436.9 MB, free: 6.938 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00135/0.3211, allocations: 1.301 MB / 438.2 MB, free: 6.605 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005246/0.3217, allocations: 351 kB / 438.6 MB, free: 6.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000575/0.3222, allocations: 0.5048 MB / 439.1 MB, free: 6.176 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006058/0.3228, allocations: 0.6084 MB / 439.7 MB, free: 5.922 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001408/0.323, allocations: 117.3 kB / 439.8 MB, free: 5.922 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002912/0.3233, allocations: 173.3 kB / 440 MB, free: 5.906 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004443/0.3237, allocations: 0.6567 MB / 440.6 MB, free: 5.629 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000582/0.3243, allocations: 0.8889 MB / 441.5 MB, free: 4.992 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002532/0.3268, allocations: 2.645 MB / 444.2 MB, free: 4.008 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.3268, allocations: 0 / 444.2 MB, free: 4.008 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3268, allocations: 1.156 kB / 444.2 MB, free: 4.008 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.4e-05/0.3269, allocations: 0 / 444.2 MB, free: 4.008 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.00363/0.3305, allocations: 2.441 MB / 446.6 MB, free: 2.422 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.3305, allocations: 9.75 kB / 446.6 MB, free: 2.422 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.96e-05/0.3306, allocations: 16 kB / 446.6 MB, free: 2.418 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001118/0.3307, allocations: 112.2 kB / 446.7 MB, free: 2.336 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002955/0.331, allocations: 224.8 kB / 447 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002268/0.3333, allocations: 1.691 MB / 448.7 MB, free: 1.301 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.735e-05/0.3333, allocations: 105.8 kB / 448.8 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.663e-05/0.3334, allocations: 68.73 kB / 448.8 MB, free: 1.188 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001335/0.3348, allocations: 0.8302 MB / 449.7 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.815e-05/0.3348, allocations: 2.031 kB / 449.7 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.545e-05/0.3349, allocations: 27.88 kB / 449.7 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.6e-05/0.3349, allocations: 14.75 kB / 449.7 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001003/0.3359, allocations: 0.5482 MB / 450.2 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006131/0.342, allocations: 4.002 MB / 454.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001362/0.3434, allocations: 0.4959 MB / 454.7 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000744/0.3441, allocations: 343.6 kB / 455.1 MB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.741e-05/0.3441, allocations: 7.344 kB / 455.1 MB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.131e-05/0.3442, allocations: 40.19 kB / 455.1 MB, free: 13.85 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.204e-06/0.3442, allocations: 3.938 kB / 455.1 MB, free: 13.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002525/0.3467, allocations: 0.9564 MB / 456.1 MB, free: 13.29 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002921/0.347, allocations: 266.4 kB / 456.3 MB, free: 12.97 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004982/0.352, allocations: 3.153 MB / 459.5 MB, free: 11.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.23e-05/0.3521, allocations: 37.08 kB / 459.5 MB, free: 11.48 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008961/0.353, allocations: 0.8627 MB / 460.4 MB, free: 10.74 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001397/0.3531, allocations: 129.6 kB / 460.5 MB, free: 10.63 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001816/0.3533, allocations: 92.34 kB / 460.6 MB, free: 10.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.3535, allocations: 330.3 kB / 460.9 MB, free: 10.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005114/0.354, allocations: 206 kB / 461.1 MB, free: 10.15 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007282/0.3547, allocations: 397.1 kB / 461.5 MB, free: 9.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001037/0.3557, allocations: 0.5201 MB / 462 MB, free: 9.465 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.3557, allocations: 1.812 kB / 462 MB, free: 9.465 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001954/0.3577, allocations: 0.7818 MB / 462.8 MB, free: 9.043 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.3577, allocations: 7.062 kB / 462.8 MB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.3577, allocations: 7.469 kB / 462.8 MB, free: 9.039 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003579/0.3581, allocations: 65.67 kB / 462.9 MB, free: 9.008 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000487/0.3586, allocations: 114.4 kB / 463 MB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002174/0.3607, allocations: 1.795 MB / 464.8 MB, free: 7.242 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001078/0.3618, allocations: 85.34 kB / 464.9 MB, free: 7.188 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.467e-05/0.3619, allocations: 18.28 kB / 464.9 MB, free: 7.184 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.00179/0.3637, allocations: 0.6492 MB / 465.6 MB, free: 6.812 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005658/0.3642, allocations: 200.6 kB / 465.8 MB, free: 6.699 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005308/0.3648, allocations: 220.3 kB / 466 MB, free: 6.586 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.3648, allocations: 3.938 kB / 466 MB, free: 6.586 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/0.3648, allocations: 0.6094 kB / 466 MB, free: 6.586 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.3648, allocations: 3.984 kB / 466 MB, free: 6.582 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004746/0.3695, allocations: 2.15 MB / 468.1 MB, free: 5.137 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.895e-06/0.3695, allocations: 3.406 kB / 468.1 MB, free: 5.137 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004018/0.3699, allocations: 84.81 kB / 468.2 MB, free: 5.113 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002276/0.3702, allocations: 66.66 kB / 468.3 MB, free: 5.074 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.306e-05/0.3702, allocations: 9.062 kB / 468.3 MB, free: 5.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001932/0.3721, allocations: 1.744 MB / 470 MB, free: 3.359 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.3721, allocations: 9.766 kB / 470 MB, free: 3.352 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00225/0.3744, allocations: 0.9837 MB / 471 MB, free: 2.758 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009403/0.3753, allocations: 452.4 kB / 471.5 MB, free: 2.441 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001921/0.3755, allocations: 8.5 kB / 471.5 MB, free: 2.438 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005966/0.3761, allocations: 57.06 kB / 471.5 MB, free: 2.414 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001391/0.3763, allocations: 36.52 kB / 471.6 MB, free: 2.395 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.207e-05/0.3763, allocations: 11.75 kB / 471.6 MB, free: 2.391 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003928/0.3802, allocations: 2.259 MB / 473.8 MB, free: 1.016 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3802, allocations: 4 kB / 473.8 MB, free: 1.012 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001244/0.3815, allocations: 255.6 kB / 474.1 MB, free: 0.7617 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.004222/0.3857, allocations: 1.894 MB / 476 MB, free: 15.04 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00145/0.3871, allocations: 0.5924 MB / 476.6 MB, free: 14.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.3871, allocations: 0 / 476.6 MB, free: 14.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007051/0.3878, allocations: 351.1 kB / 476.9 MB, free: 14.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001413/0.3893, allocations: 293.2 kB / 477.2 MB, free: 13.79 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03147/0.4207, allocations: 19.76 MB / 497 MB, free: 9.707 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001344/0.4221, allocations: 1.489 MB / 498.5 MB, free: 8.188 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008011/0.4229, allocations: 299.2 kB / 498.8 MB, free: 7.891 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008962/0.4238, allocations: 0.6477 MB / 499.4 MB, free: 7.242 MB / 398.1 MB Notification: Performance of SimCode: time 9.51e-07/0.4238, allocations: 4 kB / 499.4 MB, free: 7.238 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08198/0.5057, allocations: 36.53 MB / 0.5234 GB, free: 2.93 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.36/15.87, allocations: 19.28 kB / 0.5234 GB, free: 2.914 MB / 430.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/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: 20.754901125037577]