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.001235/0.001235, allocations: 108.6 kB / 21.22 MB, free: 0.7305 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.00137/0.00137, allocations: 191.5 kB / 24.51 MB, free: 4.086 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.404/1.404, allocations: 225.6 MB / 253.3 MB, free: 13.03 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.00141/0.00141, allocations: 51.92 kB / 371.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2772/0.2786, allocations: 52.18 MB / 423.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007418/0.286, allocations: 5.556 MB / 429 MB, free: 9.043 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003083/0.2891, allocations: 1.746 MB / 430.7 MB, free: 7.293 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003601/0.2894, allocations: 15.88 kB / 430.7 MB, free: 7.277 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00107/0.2905, allocations: 0.5135 MB / 431.2 MB, free: 6.762 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000619/0.2911, allocations: 354.1 kB / 431.6 MB, free: 6.414 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007996/0.2919, allocations: 382.1 kB / 431.9 MB, free: 6.047 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009796/0.2929, allocations: 0.8925 MB / 432.8 MB, free: 5.148 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000414/0.2933, allocations: 245.3 kB / 433.1 MB, free: 4.906 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004101/0.2937, allocations: 366.8 kB / 433.4 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005657/0.2943, allocations: 466.3 kB / 433.9 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001142/0.2944, allocations: 80 kB / 434 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002165/0.2946, allocations: 120 kB / 434.1 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005267/0.2951, allocations: 0.5882 MB / 434.7 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006902/0.2958, allocations: 0.7338 MB / 435.4 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002288/0.2981, allocations: 2.128 MB / 437.5 MB, free: 440 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.2981, allocations: 0 / 437.5 MB, free: 440 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.2981, allocations: 3.938 kB / 437.5 MB, free: 436 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.88e-05/0.2981, allocations: 4 kB / 437.5 MB, free: 432 kB / 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.003315/0.3015, allocations: 2.058 MB / 439.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.178e-05/0.3015, allocations: 8.031 kB / 439.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.179e-05/0.3015, allocations: 17.19 kB / 439.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00011/0.3017, allocations: 86.7 kB / 439.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003072/0.302, allocations: 199.6 kB / 439.9 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00242/0.3044, allocations: 1.45 MB / 441.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001202/0.3045, allocations: 92.34 kB / 441.4 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.178e-05/0.3046, allocations: 48 kB / 441.5 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001139/0.3057, allocations: 0.5815 MB / 442.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.62e-05/0.3057, allocations: 4 kB / 442.1 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.298e-05/0.3058, allocations: 20 kB / 442.1 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.448e-05/0.3058, allocations: 12 kB / 442.1 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007651/0.3066, allocations: 351.7 kB / 442.5 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005056/0.3116, allocations: 3.187 MB / 445.6 MB, free: 8.062 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001127/0.3127, allocations: 361.8 kB / 446 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004761/0.3132, allocations: 170.6 kB / 446.2 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.23e-05/0.3133, allocations: 4 kB / 446.2 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.785e-05/0.3133, allocations: 38.56 kB / 446.2 MB, free: 7.484 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.014e-06/0.3133, allocations: 0 / 446.2 MB, free: 7.484 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.00188/0.3152, allocations: 0.6263 MB / 446.8 MB, free: 6.848 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001289/0.3153, allocations: 209.6 kB / 447 MB, free: 6.594 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003672/0.319, allocations: 2.892 MB / 449.9 MB, free: 3.656 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.221e-05/0.319, allocations: 29.7 kB / 450 MB, free: 3.621 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007952/0.3198, allocations: 0.7899 MB / 450.7 MB, free: 2.824 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.054e-05/0.3199, allocations: 83.31 kB / 450.8 MB, free: 2.742 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001269/0.32, allocations: 66.03 kB / 450.9 MB, free: 2.672 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.3202, allocations: 318 kB / 451.2 MB, free: 2.355 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003388/0.3205, allocations: 124.6 kB / 451.3 MB, free: 2.234 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004789/0.321, allocations: 288.9 kB / 451.6 MB, free: 1.883 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007362/0.3217, allocations: 377.5 kB / 452 MB, free: 1.465 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.3217, allocations: 4 kB / 452 MB, free: 1.461 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001299/0.323, allocations: 0.5594 MB / 452.5 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.323, allocations: 8 kB / 452.5 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.679e-06/0.3231, allocations: 4.375 kB / 452.6 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003008/0.3234, allocations: 56.83 kB / 452.6 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002985/0.3237, allocations: 71.89 kB / 452.7 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001867/0.3255, allocations: 1.617 MB / 454.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005321/0.3261, allocations: 67.58 kB / 454.4 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.591e-05/0.3261, allocations: 16 kB / 454.4 MB, free: 14.93 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.0008593/0.3269, allocations: 0.5812 MB / 455 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002504/0.3272, allocations: 166.9 kB / 455.1 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001207/0.3284, allocations: 0.5104 MB / 455.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.3284, allocations: 4 kB / 455.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.3284, allocations: 128 / 455.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/0.3284, allocations: 7.922 kB / 455.6 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002862/0.3313, allocations: 1.657 MB / 457.3 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.3313, allocations: 0 / 457.3 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002408/0.3315, allocations: 47.91 kB / 457.3 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001772/0.3317, allocations: 52.86 kB / 457.4 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.81e-05/0.3317, allocations: 0 / 457.4 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001748/0.3335, allocations: 1.567 MB / 459 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.097e-06/0.3335, allocations: 4.031 kB / 459 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001604/0.3351, allocations: 0.7187 MB / 459.7 MB, free: 9.398 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008193/0.3359, allocations: 314.7 kB / 460 MB, free: 9.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001274/0.336, allocations: 8.172 kB / 460 MB, free: 9.082 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004053/0.3364, allocations: 39.95 kB / 460 MB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.3365, allocations: 35.94 kB / 460.1 MB, free: 9.008 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.968e-05/0.3365, allocations: 11.94 kB / 460.1 MB, free: 8.996 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002872/0.3394, allocations: 2.067 MB / 462.2 MB, free: 6.906 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3394, allocations: 0 / 462.2 MB, free: 6.906 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007535/0.3402, allocations: 207.6 kB / 462.4 MB, free: 6.703 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.003012/0.3432, allocations: 1.523 MB / 463.9 MB, free: 5.281 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001111/0.3443, allocations: 421.6 kB / 464.3 MB, free: 4.859 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.3443, allocations: 256 / 464.3 MB, free: 4.859 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000539/0.3448, allocations: 262.5 kB / 464.5 MB, free: 4.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001105/0.3459, allocations: 230.5 kB / 464.8 MB, free: 4.359 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02626/0.3722, allocations: 17.5 MB / 482.3 MB, free: 2.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001176/0.3734, allocations: 1.362 MB / 483.6 MB, free: 1.125 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005164/0.3739, allocations: 237.7 kB / 483.9 MB, free: 0.8906 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007518/0.3746, allocations: 0.5735 MB / 484.4 MB, free: 324 kB / 382.1 MB Notification: Performance of SimCode: time 1.363e-06/0.3747, allocations: 0 / 484.4 MB, free: 324 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07641/0.4511, allocations: 33.1 MB / 0.5054 GB, free: 15.42 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.27/15.72, allocations: 2.656 kB / 0.5054 GB, free: 15.42 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.3012446439825]