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.001525/0.001525, allocations: 116.4 kB / 20.43 MB, free: 1.457 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.001526/0.001526, allocations: 214.9 kB / 23.75 MB, free: 4.672 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.482/1.482, allocations: 230.5 MB / 257.4 MB, free: 8 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.002086/0.002086, allocations: 67.89 kB / 377.8 MB, free: 3.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2659/0.268, allocations: 53.41 MB / 431.2 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.008516/0.2765, allocations: 5.602 MB / 436.8 MB, free: 1.066 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003732/0.2802, allocations: 1.909 MB / 438.7 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006597/0.2809, allocations: 15.88 kB / 438.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001307/0.2822, allocations: 0.5213 MB / 439.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001121/0.2833, allocations: 390 kB / 439.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009898/0.2843, allocations: 378.6 kB / 440 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001467/0.2858, allocations: 0.8926 MB / 440.9 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005433/0.2863, allocations: 237.3 kB / 441.1 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006349/0.287, allocations: 378.8 kB / 441.5 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007934/0.2877, allocations: 466.3 kB / 441.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001639/0.2879, allocations: 80 kB / 442 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003015/0.2882, allocations: 123.9 kB / 442.1 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005389/0.2888, allocations: 0.5844 MB / 442.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009127/0.2897, allocations: 0.7415 MB / 443.4 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002467/0.2921, allocations: 2.128 MB / 445.6 MB, free: 8.238 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.012e-06/0.2921, allocations: 4 kB / 445.6 MB, free: 8.234 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2921, allocations: 4 kB / 445.6 MB, free: 8.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.928e-05/0.2922, allocations: 0 / 445.6 MB, free: 8.23 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.00463/0.2968, allocations: 2.077 MB / 447.7 MB, free: 6.113 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.2969, allocations: 8.031 kB / 447.7 MB, free: 6.105 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001748/0.2971, allocations: 90.7 kB / 447.8 MB, free: 6.008 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004383/0.2975, allocations: 195.7 kB / 447.9 MB, free: 5.816 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003061/0.3006, allocations: 1.451 MB / 449.4 MB, free: 4.336 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001293/0.3007, allocations: 92.53 kB / 449.5 MB, free: 4.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001057/0.3008, allocations: 48 kB / 449.5 MB, free: 4.184 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001138/0.3019, allocations: 0.5932 MB / 450.1 MB, free: 3.543 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.302, allocations: 0 / 450.1 MB, free: 3.543 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.52e-05/0.302, allocations: 27.98 kB / 450.2 MB, free: 3.516 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.362e-05/0.302, allocations: 12 kB / 450.2 MB, free: 3.504 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008018/0.3028, allocations: 343.8 kB / 450.5 MB, free: 3.168 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005853/0.3087, allocations: 3.199 MB / 453.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001159/0.3099, allocations: 357.1 kB / 454 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005126/0.3104, allocations: 180.6 kB / 454.2 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.823e-05/0.3104, allocations: 7.984 kB / 454.2 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.14e-05/0.3105, allocations: 34.56 kB / 454.3 MB, free: 15.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 2.785e-06/0.3105, allocations: 0 / 454.3 MB, free: 15.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.002182/0.3126, allocations: 0.6257 MB / 454.9 MB, free: 14.63 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001433/0.3128, allocations: 217.5 kB / 455.1 MB, free: 14.37 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005257/0.318, allocations: 2.904 MB / 458 MB, free: 11.42 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.591e-05/0.3181, allocations: 33.7 kB / 458 MB, free: 11.38 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008787/0.319, allocations: 0.7822 MB / 458.8 MB, free: 10.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.858e-05/0.3191, allocations: 83.36 kB / 458.9 MB, free: 10.51 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001438/0.3192, allocations: 65.98 kB / 459 MB, free: 10.44 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.3194, allocations: 322 kB / 459.3 MB, free: 10.12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003425/0.3197, allocations: 124.6 kB / 459.4 MB, free: 10 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005046/0.3202, allocations: 295.8 kB / 459.7 MB, free: 9.645 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007487/0.321, allocations: 358.3 kB / 460 MB, free: 9.242 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.066e-06/0.321, allocations: 4 kB / 460 MB, free: 9.238 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001458/0.3224, allocations: 0.5709 MB / 460.6 MB, free: 8.656 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.3225, allocations: 4 kB / 460.6 MB, free: 8.652 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.3225, allocations: 4.375 kB / 460.6 MB, free: 8.648 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003095/0.3228, allocations: 56.83 kB / 460.7 MB, free: 8.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003015/0.3231, allocations: 79.83 kB / 460.8 MB, free: 8.512 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00201/0.3251, allocations: 1.613 MB / 462.4 MB, free: 6.785 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006106/0.3257, allocations: 63.64 kB / 462.4 MB, free: 6.723 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.239e-05/0.3257, allocations: 12 kB / 462.4 MB, free: 6.711 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.0008714/0.3266, allocations: 0.5718 MB / 463 MB, free: 6.129 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003564/0.327, allocations: 178.8 kB / 463.2 MB, free: 5.953 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001374/0.3283, allocations: 0.5144 MB / 463.7 MB, free: 5.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.405e-06/0.3283, allocations: 4 kB / 463.7 MB, free: 5.426 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.3283, allocations: 4 kB / 463.7 MB, free: 5.422 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.3283, allocations: 0 / 463.7 MB, free: 5.422 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003502/0.3319, allocations: 1.668 MB / 465.4 MB, free: 3.691 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.658e-06/0.3319, allocations: 0 / 465.4 MB, free: 3.691 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002528/0.3321, allocations: 43.97 kB / 465.4 MB, free: 3.648 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002012/0.3323, allocations: 60.77 kB / 465.5 MB, free: 3.586 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.469e-05/0.3323, allocations: 8 kB / 465.5 MB, free: 3.578 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001582/0.3339, allocations: 1.554 MB / 467 MB, free: 1.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.3339, allocations: 3.984 kB / 467.1 MB, free: 1.906 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001634/0.3356, allocations: 0.7267 MB / 467.8 MB, free: 1.156 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008467/0.3364, allocations: 318.7 kB / 468.1 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000249/0.3367, allocations: 4 kB / 468.1 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005413/0.3372, allocations: 39.95 kB / 468.1 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001102/0.3373, allocations: 35.94 kB / 468.2 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.998e-05/0.3373, allocations: 8 kB / 468.2 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003483/0.3408, allocations: 2.075 MB / 470.3 MB, free: 14.66 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3408, allocations: 0 / 470.3 MB, free: 14.66 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009378/0.3417, allocations: 203.7 kB / 470.5 MB, free: 14.46 MB / 382.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.0033/0.345, allocations: 1.515 MB / 472 MB, free: 13.03 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001131/0.3462, allocations: 423 kB / 472.4 MB, free: 12.6 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.3462, allocations: 256 / 472.4 MB, free: 12.6 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005639/0.3467, allocations: 274.4 kB / 472.6 MB, free: 12.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001191/0.3479, allocations: 225.1 kB / 472.9 MB, free: 12.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02943/0.3774, allocations: 17.54 MB / 490.4 MB, free: 10.24 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00145/0.3788, allocations: 1.354 MB / 491.8 MB, free: 8.852 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006312/0.3794, allocations: 246.8 kB / 492 MB, free: 8.605 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008698/0.3803, allocations: 0.5774 MB / 492.6 MB, free: 8.027 MB / 398.1 MB Notification: Performance of SimCode: time 8.31e-07/0.3803, allocations: 0 / 492.6 MB, free: 8.027 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08801/0.4683, allocations: 33.14 MB / 0.5134 GB, free: 7 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.7/16.17, allocations: 3.938 kB / 0.5134 GB, free: 6.996 MB / 430.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 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.mat","/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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 19.97051075915806]