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.001726/0.001726, allocations: 112 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.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.001968/0.001968, allocations: 188.4 kB / 23.72 MB, free: 4.684 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.468/1.468, allocations: 225.6 MB / 252.5 MB, free: 13.02 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001749/0.001749, allocations: 47.94 kB / 370.4 MB, free: 9.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.2545, allocations: 52.19 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007795/0.2623, allocations: 5.549 MB / 428.2 MB, free: 9.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003006/0.2653, allocations: 1.745 MB / 429.9 MB, free: 7.273 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003369/0.2656, allocations: 19.88 kB / 429.9 MB, free: 7.254 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001015/0.2667, allocations: 0.5213 MB / 430.5 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006634/0.2673, allocations: 338.2 kB / 430.8 MB, free: 6.398 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008058/0.2681, allocations: 382.2 kB / 431.2 MB, free: 6.027 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001109/0.2692, allocations: 0.8926 MB / 432 MB, free: 5.129 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000421/0.2697, allocations: 237.3 kB / 432.3 MB, free: 4.895 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004254/0.2701, allocations: 370.8 kB / 432.6 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005654/0.2706, allocations: 466.3 kB / 433.1 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001039/0.2708, allocations: 76 kB / 433.2 MB, free: 4 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002017/0.271, allocations: 124 kB / 433.3 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000465/0.2714, allocations: 0.5843 MB / 433.9 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006677/0.2721, allocations: 0.7416 MB / 434.6 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002273/0.2744, allocations: 2.128 MB / 436.7 MB, free: 420 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.2744, allocations: 0 / 436.7 MB, free: 420 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2744, allocations: 0 / 436.7 MB, free: 420 kB / 334.1 MB Notification: Performance of Transformations before backend: time 2.684e-05/0.2744, allocations: 0 / 436.7 MB, free: 420 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.00339/0.2778, allocations: 2.062 MB / 438.8 MB, free: 14.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.2778, allocations: 12.03 kB / 438.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001102/0.2779, allocations: 94.7 kB / 438.9 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002568/0.2782, allocations: 199.6 kB / 439.1 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002315/0.2805, allocations: 1.443 MB / 440.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001149/0.2806, allocations: 96.39 kB / 440.6 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.031e-05/0.2807, allocations: 48 kB / 440.7 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.2817, allocations: 0.5776 MB / 441.3 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.68e-05/0.2818, allocations: 3.938 kB / 441.3 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.158e-05/0.2818, allocations: 24 kB / 441.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.039e-05/0.2818, allocations: 12 kB / 441.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007374/0.2826, allocations: 351.8 kB / 441.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0046/0.2872, allocations: 3.187 MB / 444.8 MB, free: 8.055 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001105/0.2883, allocations: 355.2 kB / 445.2 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004666/0.2887, allocations: 176.8 kB / 445.4 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.361e-05/0.2888, allocations: 0 / 445.4 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.045e-05/0.2888, allocations: 38.5 kB / 445.4 MB, free: 7.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.192e-06/0.2888, allocations: 0 / 445.4 MB, free: 7.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001781/0.2906, allocations: 0.6319 MB / 446 MB, free: 6.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001253/0.2907, allocations: 213.6 kB / 446.2 MB, free: 6.582 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00362/0.2943, allocations: 2.888 MB / 449.1 MB, free: 3.648 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.218e-05/0.2944, allocations: 37.64 kB / 449.2 MB, free: 3.605 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007692/0.2951, allocations: 0.7899 MB / 450 MB, free: 2.809 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.709e-05/0.2952, allocations: 83.33 kB / 450 MB, free: 2.727 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001175/0.2953, allocations: 66.03 kB / 450.1 MB, free: 2.656 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.2955, allocations: 318 kB / 450.4 MB, free: 2.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003467/0.2958, allocations: 124.6 kB / 450.5 MB, free: 2.219 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004536/0.2963, allocations: 284.9 kB / 450.8 MB, free: 1.871 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007202/0.297, allocations: 369.5 kB / 451.2 MB, free: 1.461 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.297, allocations: 0 / 451.2 MB, free: 1.461 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001164/0.2982, allocations: 0.5674 MB / 451.7 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.2982, allocations: 8 kB / 451.7 MB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.2982, allocations: 4 kB / 451.7 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000257/0.2984, allocations: 56.83 kB / 451.8 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000281/0.2987, allocations: 72.08 kB / 451.9 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001764/0.3005, allocations: 1.617 MB / 453.5 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004321/0.3009, allocations: 63.64 kB / 453.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.858e-05/0.301, allocations: 19.94 kB / 453.6 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.0007163/0.3017, allocations: 0.5797 MB / 454.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002125/0.3019, allocations: 170.9 kB / 454.3 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001216/0.3031, allocations: 0.5079 MB / 454.8 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.3031, allocations: 0 / 454.8 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.3031, allocations: 8 kB / 454.8 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.3031, allocations: 3.984 kB / 454.8 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002886/0.306, allocations: 1.661 MB / 456.5 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.306, allocations: 0 / 456.5 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002296/0.3062, allocations: 44 kB / 456.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001568/0.3064, allocations: 48.83 kB / 456.6 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.901e-05/0.3064, allocations: 4 kB / 456.6 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001585/0.308, allocations: 1.571 MB / 458.2 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.308, allocations: 0 / 458.2 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001553/0.3095, allocations: 0.7148 MB / 458.9 MB, free: 9.398 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007408/0.3103, allocations: 306.8 kB / 459.2 MB, free: 9.098 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000123/0.3104, allocations: 8 kB / 459.2 MB, free: 9.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004115/0.3108, allocations: 51.89 kB / 459.2 MB, free: 9.039 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.3109, allocations: 39.88 kB / 459.3 MB, free: 9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.861e-05/0.3109, allocations: 8 kB / 459.3 MB, free: 8.992 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002942/0.3139, allocations: 2.067 MB / 461.4 MB, free: 6.902 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3139, allocations: 0 / 461.4 MB, free: 6.902 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007294/0.3146, allocations: 207.6 kB / 461.6 MB, free: 6.699 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.002948/0.3176, allocations: 1.512 MB / 463.1 MB, free: 5.289 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001082/0.3186, allocations: 437.2 kB / 463.5 MB, free: 4.852 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3186, allocations: 0 / 463.5 MB, free: 4.852 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005319/0.3192, allocations: 263.2 kB / 463.8 MB, free: 4.582 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001022/0.3202, allocations: 217.2 kB / 464 MB, free: 4.367 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02578/0.346, allocations: 17.52 MB / 481.5 MB, free: 2.508 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00144/0.3474, allocations: 1.35 MB / 482.8 MB, free: 1.125 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009436/0.3484, allocations: 237.7 kB / 483.1 MB, free: 0.8906 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008616/0.3492, allocations: 0.5696 MB / 483.6 MB, free: 328 kB / 382.1 MB Notification: Performance of SimCode: time 1.703e-06/0.3492, allocations: 0 / 483.6 MB, free: 328 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1033/0.4525, allocations: 33.07 MB / 0.5046 GB, free: 15.44 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.7/16.16, allocations: 15.66 kB / 0.5046 GB, free: 15.43 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: 19.926205771043897]