Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001247/0.001247, allocations: 101.5 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 188.4 kB / 24.49 MB, free: 3.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 43.92 kB / 371.2 MB, free: 9.785 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/0.2794, allocations: 52.2 MB / 423.3 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.006827/0.2862, allocations: 4.902 MB / 428.2 MB, free: 9.469 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002555/0.2888, allocations: 1.633 MB / 429.9 MB, free: 7.832 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000278/0.289, allocations: 19.88 kB / 429.9 MB, free: 7.812 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009703/0.29, allocations: 0.5069 MB / 430.4 MB, free: 7.305 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005701/0.2906, allocations: 350.1 kB / 430.7 MB, free: 6.961 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006887/0.2913, allocations: 373.3 kB / 431.1 MB, free: 6.602 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009362/0.2922, allocations: 0.9003 MB / 432 MB, free: 5.695 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003834/0.2926, allocations: 237.4 kB / 432.2 MB, free: 5.461 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003744/0.293, allocations: 374.8 kB / 432.6 MB, free: 5.094 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004985/0.2935, allocations: 466.3 kB / 433.1 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.926e-05/0.2936, allocations: 80 kB / 433.1 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001916/0.2938, allocations: 120 kB / 433.3 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004526/0.2942, allocations: 0.5921 MB / 433.9 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005084/0.2947, allocations: 0.5473 MB / 434.4 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002021/0.2967, allocations: 2.144 MB / 436.5 MB, free: 1.145 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.2967, allocations: 0 / 436.5 MB, free: 1.145 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2967, allocations: 0 / 436.5 MB, free: 1.145 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.087e-05/0.2968, allocations: 0 / 436.5 MB, free: 1.145 MB / 334.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.003035/0.2998, allocations: 2.066 MB / 438.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.2998, allocations: 15.97 kB / 438.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.599e-05/0.2999, allocations: 13.19 kB / 438.6 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.875e-05/0.3, allocations: 90.7 kB / 438.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002558/0.3002, allocations: 199.6 kB / 438.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002125/0.3023, allocations: 1.443 MB / 440.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001126/0.3025, allocations: 96.41 kB / 440.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.961e-05/0.3025, allocations: 44 kB / 440.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001184/0.3037, allocations: 0.8325 MB / 441.3 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.335e-05/0.3037, allocations: 3.938 kB / 441.3 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.112e-05/0.3038, allocations: 24 kB / 441.4 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.491e-05/0.3038, allocations: 16 kB / 441.4 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006922/0.3045, allocations: 339.8 kB / 441.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004048/0.3086, allocations: 2.922 MB / 444.6 MB, free: 8.738 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/0.3096, allocations: 358.5 kB / 445 MB, free: 8.379 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004431/0.3101, allocations: 168.8 kB / 445.1 MB, free: 8.211 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.37e-05/0.3101, allocations: 4 kB / 445.2 MB, free: 8.207 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.362e-05/0.3101, allocations: 42.5 kB / 445.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.543e-06/0.3101, allocations: 0 / 445.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001748/0.3119, allocations: 0.628 MB / 445.8 MB, free: 7.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001204/0.312, allocations: 213.6 kB / 446 MB, free: 7.262 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003511/0.3155, allocations: 2.896 MB / 448.9 MB, free: 4.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.828e-05/0.3155, allocations: 29.7 kB / 449 MB, free: 4.285 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008036/0.3163, allocations: 0.786 MB / 449.7 MB, free: 3.492 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.447e-05/0.3164, allocations: 79.33 kB / 449.8 MB, free: 3.414 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/0.3165, allocations: 69.97 kB / 449.9 MB, free: 3.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.3167, allocations: 318 kB / 450.2 MB, free: 3.023 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003248/0.317, allocations: 128.6 kB / 450.3 MB, free: 2.898 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005105/0.3175, allocations: 435.1 kB / 450.7 MB, free: 2.367 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006954/0.3182, allocations: 373.5 kB / 451.1 MB, free: 1.953 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.3182, allocations: 3.938 kB / 451.1 MB, free: 1.949 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001102/0.3193, allocations: 0.5594 MB / 451.7 MB, free: 1.379 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.3193, allocations: 11.44 kB / 451.7 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.3193, allocations: 4.406 kB / 451.7 MB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002802/0.3196, allocations: 56.83 kB / 451.7 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002826/0.3199, allocations: 75.89 kB / 451.8 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001655/0.3216, allocations: 1.621 MB / 453.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004055/0.322, allocations: 63.64 kB / 453.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.722e-05/0.322, allocations: 16 kB / 453.5 MB, free: 15.42 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.0006602/0.3227, allocations: 0.5757 MB / 454.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002039/0.3229, allocations: 171 kB / 454.3 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001175/0.324, allocations: 0.5085 MB / 454.8 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.324, allocations: 4 kB / 454.8 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-06/0.324, allocations: 0 / 454.8 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.3241, allocations: 7.922 kB / 454.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002505/0.3266, allocations: 1.486 MB / 456.3 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.3266, allocations: 0 / 456.3 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002202/0.3268, allocations: 39.97 kB / 456.3 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001593/0.3269, allocations: 56.84 kB / 456.4 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.875e-05/0.327, allocations: 4 kB / 456.4 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001475/0.3284, allocations: 1.555 MB / 457.9 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.3284, allocations: 4.031 kB / 457.9 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001416/0.3299, allocations: 0.7119 MB / 458.6 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005658/0.3304, allocations: 314.8 kB / 458.9 MB, free: 9.766 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001274/0.3305, allocations: 8 kB / 459 MB, free: 9.758 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004125/0.331, allocations: 47.95 kB / 459 MB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.842e-05/0.3311, allocations: 31.88 kB / 459 MB, free: 9.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.116e-05/0.3311, allocations: 15.94 kB / 459 MB, free: 9.664 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002648/0.3337, allocations: 2.063 MB / 461.1 MB, free: 7.578 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3337, allocations: 0 / 461.1 MB, free: 7.578 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007385/0.3345, allocations: 207.6 kB / 461.3 MB, free: 7.375 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.003042/0.3375, allocations: 1.544 MB / 462.9 MB, free: 5.957 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001046/0.3386, allocations: 425.8 kB / 463.3 MB, free: 5.531 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.3386, allocations: 8.062 kB / 463.3 MB, free: 5.523 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005186/0.3391, allocations: 258.5 kB / 463.5 MB, free: 5.258 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001045/0.3401, allocations: 217.1 kB / 463.7 MB, free: 5.043 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0245/0.3646, allocations: 17.51 MB / 481.2 MB, free: 3.199 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009351/0.3656, allocations: 0.7627 MB / 482 MB, free: 2.398 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005169/0.3661, allocations: 237.7 kB / 482.2 MB, free: 2.164 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007457/0.3668, allocations: 0.5774 MB / 482.8 MB, free: 1.586 MB / 382.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3668, allocations: 0 / 482.8 MB, free: 1.586 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07138/0.4382, allocations: 34.04 MB / 0.5048 GB, free: 15.79 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.22/15.66, allocations: 0 / 0.5048 GB, free: 15.79 MB / 430.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 20.22723173396662]