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.001291/0.001291, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.001395/0.001395, allocations: 214.4 kB / 23.74 MB, free: 4.656 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.506/1.506, allocations: 230.6 MB / 257.5 MB, free: 7.996 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.001658/0.001658, allocations: 43.92 kB / 377.8 MB, free: 3.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2482/0.2498, allocations: 53.36 MB / 431.1 MB, free: 6.824 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007723/0.2575, allocations: 5.6 MB / 436.7 MB, free: 1.203 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003074/0.2606, allocations: 1.913 MB / 438.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003071/0.2609, allocations: 19.88 kB / 438.7 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001009/0.2619, allocations: 0.5174 MB / 439.2 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007207/0.2626, allocations: 390 kB / 439.6 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007763/0.2634, allocations: 381.6 kB / 439.9 MB, free: 14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001015/0.2644, allocations: 0.8965 MB / 440.8 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004078/0.2648, allocations: 241.3 kB / 441.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004356/0.2653, allocations: 362.8 kB / 441.4 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005514/0.2658, allocations: 470.3 kB / 441.9 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001028/0.2659, allocations: 80 kB / 441.9 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000207/0.2661, allocations: 128 kB / 442.1 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004846/0.2666, allocations: 0.5843 MB / 442.7 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006567/0.2673, allocations: 0.7415 MB / 443.4 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002064/0.2693, allocations: 2.132 MB / 445.5 MB, free: 8.367 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/0.2694, allocations: 3.984 kB / 445.5 MB, free: 8.363 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2694, allocations: 0 / 445.5 MB, free: 8.363 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.339e-05/0.2694, allocations: 0 / 445.5 MB, free: 8.363 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.003494/0.2729, allocations: 2.073 MB / 447.6 MB, free: 6.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.235e-05/0.2729, allocations: 12.03 kB / 447.6 MB, free: 6.238 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000122/0.273, allocations: 94.7 kB / 447.7 MB, free: 6.137 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003195/0.2734, allocations: 195.7 kB / 447.9 MB, free: 5.945 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002447/0.2758, allocations: 1.451 MB / 449.4 MB, free: 4.465 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000141/0.276, allocations: 100.4 kB / 449.5 MB, free: 4.352 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.728e-05/0.276, allocations: 44 kB / 449.5 MB, free: 4.309 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001129/0.2772, allocations: 0.5854 MB / 450.1 MB, free: 3.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.873e-05/0.2772, allocations: 7.938 kB / 450.1 MB, free: 3.672 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.958e-05/0.2772, allocations: 19.94 kB / 450.1 MB, free: 3.652 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.535e-05/0.2772, allocations: 12 kB / 450.1 MB, free: 3.641 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007506/0.278, allocations: 347.8 kB / 450.5 MB, free: 3.297 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004889/0.2829, allocations: 3.191 MB / 453.6 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001085/0.284, allocations: 361 kB / 454 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000528/0.2845, allocations: 171.3 kB / 454.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.35e-05/0.2845, allocations: 7.984 kB / 454.2 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.227e-05/0.2846, allocations: 38.56 kB / 454.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 2.024e-06/0.2846, allocations: 3.938 kB / 454.2 MB, free: 15.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.001856/0.2864, allocations: 0.6224 MB / 454.8 MB, free: 14.77 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001387/0.2866, allocations: 221.5 kB / 455.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003866/0.2904, allocations: 2.897 MB / 458 MB, free: 11.56 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.329e-05/0.2905, allocations: 33.7 kB / 458 MB, free: 11.52 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007832/0.2913, allocations: 0.7978 MB / 458.8 MB, free: 10.72 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.119e-05/0.2913, allocations: 71.38 kB / 458.9 MB, free: 10.65 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001264/0.2915, allocations: 69.98 kB / 458.9 MB, free: 10.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.2916, allocations: 322 kB / 459.2 MB, free: 10.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003459/0.2919, allocations: 120.6 kB / 459.4 MB, free: 10.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000489/0.2924, allocations: 294.4 kB / 459.6 MB, free: 9.781 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007071/0.2931, allocations: 361.9 kB / 460 MB, free: 9.379 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.2931, allocations: 0 / 460 MB, free: 9.379 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001185/0.2943, allocations: 0.5712 MB / 460.6 MB, free: 8.797 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.2944, allocations: 8 kB / 460.6 MB, free: 8.789 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.149e-05/0.2944, allocations: 4 kB / 460.6 MB, free: 8.785 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002769/0.2946, allocations: 56.83 kB / 460.6 MB, free: 8.727 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002873/0.2949, allocations: 76.08 kB / 460.7 MB, free: 8.652 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001931/0.2969, allocations: 1.613 MB / 462.3 MB, free: 6.926 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004859/0.2973, allocations: 63.64 kB / 462.4 MB, free: 6.863 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.838e-05/0.2974, allocations: 16.09 kB / 462.4 MB, free: 6.848 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.000847/0.2982, allocations: 0.5757 MB / 463 MB, free: 6.262 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002397/0.2985, allocations: 174.8 kB / 463.1 MB, free: 6.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001217/0.2997, allocations: 0.5122 MB / 463.7 MB, free: 5.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.2997, allocations: 7.984 kB / 463.7 MB, free: 5.562 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/0.2997, allocations: 4 kB / 463.7 MB, free: 5.559 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.2997, allocations: 0 / 463.7 MB, free: 5.559 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002934/0.3026, allocations: 1.661 MB / 465.3 MB, free: 3.836 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.3026, allocations: 4.031 kB / 465.3 MB, free: 3.832 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002248/0.3029, allocations: 43.97 kB / 465.4 MB, free: 3.789 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001774/0.303, allocations: 52.75 kB / 465.4 MB, free: 3.734 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.036e-05/0.3031, allocations: 4 kB / 465.4 MB, free: 3.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001704/0.3048, allocations: 1.57 MB / 467 MB, free: 2.047 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.3048, allocations: 4.031 kB / 467 MB, free: 2.043 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001636/0.3064, allocations: 0.7275 MB / 467.7 MB, free: 1.289 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000729/0.3071, allocations: 310.7 kB / 468 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001247/0.3073, allocations: 8 kB / 468 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004219/0.3077, allocations: 43.95 kB / 468.1 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.393e-05/0.3078, allocations: 31.94 kB / 468.1 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.961e-05/0.3078, allocations: 11.94 kB / 468.1 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002876/0.3107, allocations: 2.079 MB / 470.2 MB, free: 14.79 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3107, allocations: 0 / 470.2 MB, free: 14.79 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007175/0.3114, allocations: 199.7 kB / 470.4 MB, free: 14.59 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.003066/0.3144, allocations: 1.52 MB / 471.9 MB, free: 13.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001067/0.3155, allocations: 430.5 kB / 472.3 MB, free: 12.74 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3155, allocations: 0 / 472.3 MB, free: 12.74 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005375/0.3161, allocations: 271.2 kB / 472.6 MB, free: 12.46 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009974/0.3171, allocations: 221.3 kB / 472.8 MB, free: 12.25 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02571/0.3428, allocations: 17.53 MB / 490.4 MB, free: 10.39 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001134/0.3439, allocations: 1.354 MB / 491.7 MB, free: 9.004 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005323/0.3444, allocations: 254.8 kB / 492 MB, free: 8.75 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007407/0.3452, allocations: 0.5774 MB / 492.5 MB, free: 8.172 MB / 398.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3452, allocations: 0 / 492.5 MB, free: 8.172 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07987/0.425, allocations: 33.15 MB / 0.5134 GB, free: 7.203 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.54/15.97, allocations: 11.44 kB / 0.5134 GB, free: 7.195 MB / 430.1 MB " [Timeout remaining time 644] (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: 19.79097696603276]