Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001579/0.001579, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001921/0.001921, allocations: 203.5 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.411/1.411, allocations: 230.6 MB / 257.5 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001566/0.001566, allocations: 47.92 kB / 377.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2656/0.2672, allocations: 53.37 MB / 431.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007218/0.2744, allocations: 4.976 MB / 436 MB, free: 1.633 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00321/0.2776, allocations: 1.785 MB / 437.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003217/0.2779, allocations: 19.88 kB / 437.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001129/0.279, allocations: 0.5096 MB / 438.4 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007431/0.2798, allocations: 390 kB / 438.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000771/0.2806, allocations: 380.6 kB / 439.1 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001106/0.2817, allocations: 0.8965 MB / 440 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004255/0.2821, allocations: 237.3 kB / 440.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004437/0.2825, allocations: 374.8 kB / 440.6 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006242/0.2831, allocations: 462.3 kB / 441.1 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001439/0.2833, allocations: 84 kB / 441.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002132/0.2835, allocations: 123.9 kB / 441.3 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004997/0.284, allocations: 0.5882 MB / 441.8 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000567/0.2846, allocations: 0.5435 MB / 442.4 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002182/0.2868, allocations: 2.152 MB / 444.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.2868, allocations: 0 / 444.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2868, allocations: 0 / 444.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.441e-05/0.2868, allocations: 0 / 444.5 MB, free: 9.105 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.003667/0.2905, allocations: 2.081 MB / 446.6 MB, free: 6.984 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.2905, allocations: 12.03 kB / 446.6 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001117/0.2906, allocations: 94.7 kB / 446.7 MB, free: 6.871 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002956/0.2909, allocations: 195.7 kB / 446.9 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002554/0.2935, allocations: 1.447 MB / 448.4 MB, free: 5.203 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001177/0.2936, allocations: 100.4 kB / 448.5 MB, free: 5.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.836e-05/0.2937, allocations: 48 kB / 448.5 MB, free: 5.043 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001286/0.2949, allocations: 0.8325 MB / 449.3 MB, free: 4.105 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.295, allocations: 4 kB / 449.3 MB, free: 4.102 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.218e-05/0.295, allocations: 20 kB / 449.4 MB, free: 4.082 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.437e-05/0.295, allocations: 15.98 kB / 449.4 MB, free: 4.066 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000728/0.2958, allocations: 347.7 kB / 449.7 MB, free: 3.723 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004733/0.3005, allocations: 2.93 MB / 452.7 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001063/0.3016, allocations: 354.5 kB / 453 MB, free: 328 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004501/0.302, allocations: 168.7 kB / 453.2 MB, free: 156 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.005e-05/0.302, allocations: 7.984 kB / 453.2 MB, free: 148 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.579e-05/0.3021, allocations: 38.56 kB / 453.2 MB, free: 100 kB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.254e-06/0.3021, allocations: 0 / 453.2 MB, free: 100 kB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.00198/0.3041, allocations: 0.6341 MB / 453.8 MB, free: 15.45 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001392/0.3042, allocations: 213.6 kB / 454.1 MB, free: 15.19 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004018/0.3082, allocations: 2.912 MB / 457 MB, free: 12.23 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.606e-05/0.3083, allocations: 25.7 kB / 457 MB, free: 12.2 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008781/0.3092, allocations: 0.7938 MB / 457.8 MB, free: 11.41 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.564e-05/0.3092, allocations: 79.38 kB / 457.9 MB, free: 11.33 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001409/0.3094, allocations: 65.98 kB / 457.9 MB, free: 11.26 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.3095, allocations: 318 kB / 458.2 MB, free: 10.94 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003592/0.3099, allocations: 128.6 kB / 458.4 MB, free: 10.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005635/0.3104, allocations: 446.9 kB / 458.8 MB, free: 10.27 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007727/0.3112, allocations: 359.9 kB / 459.1 MB, free: 9.871 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.3112, allocations: 4 kB / 459.2 MB, free: 9.867 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001268/0.3125, allocations: 0.5632 MB / 459.7 MB, free: 9.297 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/0.3125, allocations: 4 kB / 459.7 MB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.387e-06/0.3125, allocations: 4 kB / 459.7 MB, free: 9.289 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002714/0.3128, allocations: 64.95 kB / 459.8 MB, free: 9.223 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002925/0.3131, allocations: 75.89 kB / 459.9 MB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00181/0.3149, allocations: 1.605 MB / 461.5 MB, free: 7.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006513/0.3155, allocations: 63.7 kB / 461.5 MB, free: 7.367 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.584e-05/0.3156, allocations: 12 kB / 461.5 MB, free: 7.355 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.0008054/0.3164, allocations: 0.5931 MB / 462.1 MB, free: 6.758 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002491/0.3166, allocations: 170.9 kB / 462.3 MB, free: 6.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001302/0.3179, allocations: 0.5145 MB / 462.8 MB, free: 6.066 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.3179, allocations: 4 kB / 462.8 MB, free: 6.062 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-06/0.3179, allocations: 0 / 462.8 MB, free: 6.062 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.3179, allocations: 0 / 462.8 MB, free: 6.062 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002954/0.3209, allocations: 1.496 MB / 464.3 MB, free: 4.504 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.3209, allocations: 0 / 464.3 MB, free: 4.504 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000238/0.3211, allocations: 47.91 kB / 464.4 MB, free: 4.457 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001691/0.3213, allocations: 48.81 kB / 464.4 MB, free: 4.406 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.339e-05/0.3213, allocations: 8 kB / 464.4 MB, free: 4.398 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00161/0.3229, allocations: 1.562 MB / 466 MB, free: 2.723 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.3229, allocations: 4.031 kB / 466 MB, free: 2.719 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001588/0.3245, allocations: 0.712 MB / 466.7 MB, free: 1.98 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008046/0.3253, allocations: 310.7 kB / 467 MB, free: 1.676 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001455/0.3255, allocations: 8 kB / 467 MB, free: 1.668 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004322/0.3259, allocations: 47.95 kB / 467.1 MB, free: 1.621 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.307e-05/0.326, allocations: 35.94 kB / 467.1 MB, free: 1.586 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.326, allocations: 4 kB / 467.1 MB, free: 1.582 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003024/0.329, allocations: 2.079 MB / 469.2 MB, free: 15.48 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.329, allocations: 0 / 469.2 MB, free: 15.48 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008181/0.3299, allocations: 199.7 kB / 469.4 MB, free: 15.29 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.00329/0.3332, allocations: 1.542 MB / 470.9 MB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001049/0.3342, allocations: 430.3 kB / 471.3 MB, free: 13.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.3342, allocations: 0.8125 kB / 471.3 MB, free: 13.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006137/0.3348, allocations: 273.8 kB / 471.6 MB, free: 13.15 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001172/0.336, allocations: 217 kB / 471.8 MB, free: 12.94 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02819/0.3642, allocations: 17.52 MB / 489.3 MB, free: 11.09 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001004/0.3652, allocations: 0.7629 MB / 490.1 MB, free: 10.29 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005556/0.3657, allocations: 254.8 kB / 490.3 MB, free: 10.03 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000771/0.3665, allocations: 0.5774 MB / 490.9 MB, free: 9.453 MB / 398.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3665, allocations: 0 / 490.9 MB, free: 9.453 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08104/0.4476, allocations: 34.71 MB / 0.5133 GB, free: 6.98 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.67/14.12, allocations: 10.86 kB / 0.5133 GB, free: 6.973 MB / 430.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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: 17.796092998993117]