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.001844/0.001844, allocations: 112.2 kB / 20.43 MB, free: 1.457 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.002265/0.002265, allocations: 180.4 kB / 23.72 MB, free: 4.699 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.436/1.436, 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.001538/0.001538, allocations: 47.92 kB / 370.4 MB, free: 9.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2982/0.2997, allocations: 52.19 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.008197/0.3079, allocations: 5.556 MB / 428.2 MB, free: 9.043 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003899/0.3118, allocations: 1.734 MB / 429.9 MB, free: 7.309 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007908/0.3126, allocations: 19.88 kB / 429.9 MB, free: 7.289 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001303/0.3139, allocations: 0.5213 MB / 430.4 MB, free: 6.766 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008239/0.3147, allocations: 350.1 kB / 430.8 MB, free: 6.422 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009826/0.3157, allocations: 386.4 kB / 431.2 MB, free: 6.047 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001352/0.317, allocations: 0.8926 MB / 432.1 MB, free: 5.148 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004856/0.3175, allocations: 241.2 kB / 432.3 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004713/0.318, allocations: 370.8 kB / 432.7 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005766/0.3186, allocations: 466.3 kB / 433.1 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001058/0.3187, allocations: 76 kB / 433.2 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002334/0.3189, allocations: 120 kB / 433.3 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004922/0.3194, allocations: 0.5921 MB / 433.9 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006609/0.3201, allocations: 0.7299 MB / 434.6 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002418/0.3225, allocations: 2.136 MB / 436.8 MB, free: 436 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.303e-06/0.3225, allocations: 0 / 436.8 MB, free: 436 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3225, allocations: 0 / 436.8 MB, free: 436 kB / 334.1 MB Notification: Performance of Transformations before backend: time 4.624e-05/0.3225, allocations: 0 / 436.8 MB, free: 436 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.004708/0.3272, allocations: 2.062 MB / 438.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/0.3273, allocations: 8.031 kB / 438.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001124/0.3274, allocations: 90.7 kB / 438.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003307/0.3277, allocations: 199.6 kB / 439.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002705/0.3304, allocations: 1.447 MB / 440.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001462/0.3306, allocations: 92.41 kB / 440.6 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.981e-05/0.3307, allocations: 44 kB / 440.7 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001138/0.3318, allocations: 0.5893 MB / 441.3 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.84e-05/0.3318, allocations: 0 / 441.3 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.412e-05/0.3319, allocations: 27.94 kB / 441.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.3319, allocations: 12 kB / 441.3 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007124/0.3326, allocations: 343.8 kB / 441.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005115/0.3377, allocations: 3.187 MB / 444.8 MB, free: 8.078 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001115/0.3389, allocations: 361.9 kB / 445.2 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006162/0.3395, allocations: 174.8 kB / 445.4 MB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.467e-05/0.3395, allocations: 7.984 kB / 445.4 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.962e-05/0.3396, allocations: 34.56 kB / 445.4 MB, free: 7.496 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 3.266e-06/0.3396, allocations: 0 / 445.4 MB, free: 7.496 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.002076/0.3416, allocations: 0.6224 MB / 446 MB, free: 6.863 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001457/0.3418, allocations: 217.6 kB / 446.2 MB, free: 6.602 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004058/0.3458, allocations: 2.888 MB / 449.1 MB, free: 3.668 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.46e-05/0.3459, allocations: 33.7 kB / 449.2 MB, free: 3.629 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007819/0.3467, allocations: 0.786 MB / 450 MB, free: 2.836 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.924e-05/0.3468, allocations: 87.31 kB / 450 MB, free: 2.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001189/0.3469, allocations: 62.03 kB / 450.1 MB, free: 2.684 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.347, allocations: 326 kB / 450.4 MB, free: 2.359 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003365/0.3474, allocations: 116.6 kB / 450.5 MB, free: 2.246 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005135/0.3479, allocations: 292.8 kB / 450.8 MB, free: 1.891 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007562/0.3486, allocations: 365.6 kB / 451.2 MB, free: 1.484 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.301e-06/0.3486, allocations: 4 kB / 451.2 MB, free: 1.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001209/0.3499, allocations: 0.5636 MB / 451.7 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.3499, allocations: 4 kB / 451.7 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.3499, allocations: 8.031 kB / 451.8 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002946/0.3502, allocations: 56.81 kB / 451.8 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002999/0.3505, allocations: 79.83 kB / 451.9 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001835/0.3523, allocations: 1.613 MB / 453.5 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005308/0.3529, allocations: 63.64 kB / 453.6 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.939e-05/0.3529, allocations: 16 kB / 453.6 MB, free: 14.95 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.0009717/0.3539, allocations: 0.5785 MB / 454.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002687/0.3541, allocations: 178.9 kB / 454.3 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001262/0.3554, allocations: 0.5079 MB / 454.8 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.3554, allocations: 4 kB / 454.8 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/0.3554, allocations: 0 / 454.8 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.3554, allocations: 0 / 454.8 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003089/0.3585, allocations: 1.661 MB / 456.5 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.3585, allocations: 0 / 456.5 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002375/0.3587, allocations: 43.97 kB / 456.5 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001805/0.3589, allocations: 52.84 kB / 456.6 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.977e-05/0.3589, allocations: 7.938 kB / 456.6 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001703/0.3606, allocations: 1.559 MB / 458.2 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3606, allocations: 0 / 458.2 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001703/0.3623, allocations: 0.7191 MB / 458.9 MB, free: 9.426 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007838/0.3631, allocations: 318.8 kB / 459.2 MB, free: 9.113 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001234/0.3632, allocations: 11.88 kB / 459.2 MB, free: 9.102 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004374/0.3637, allocations: 44.14 kB / 459.2 MB, free: 9.059 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.3638, allocations: 35.94 kB / 459.3 MB, free: 9.023 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.251e-05/0.3638, allocations: 11.98 kB / 459.3 MB, free: 9.012 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003115/0.3669, allocations: 2.067 MB / 461.4 MB, free: 6.922 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3669, allocations: 0 / 461.4 MB, free: 6.922 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008395/0.3678, allocations: 203.6 kB / 461.6 MB, free: 6.723 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.003119/0.3709, allocations: 1.503 MB / 463.1 MB, free: 5.316 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001124/0.372, allocations: 433.7 kB / 463.5 MB, free: 4.883 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.372, allocations: 4.125 kB / 463.5 MB, free: 4.879 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005462/0.3725, allocations: 270.5 kB / 463.8 MB, free: 4.602 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001196/0.3737, allocations: 217 kB / 464 MB, free: 4.387 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02779/0.4015, allocations: 17.51 MB / 481.5 MB, free: 2.535 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001377/0.4029, allocations: 1.354 MB / 482.8 MB, free: 1.148 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008917/0.4038, allocations: 241.7 kB / 483.1 MB, free: 0.9102 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008664/0.4047, allocations: 0.5696 MB / 483.6 MB, free: 348 kB / 382.1 MB Notification: Performance of SimCode: time 2.294e-06/0.4047, allocations: 0 / 483.6 MB, free: 348 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08165/0.4863, allocations: 33.07 MB / 0.5046 GB, free: 15.46 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.16/15.65, allocations: 6.562 kB / 0.5046 GB, free: 15.45 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.csv --start-time 0 --stop-time 1200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 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.csv","/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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.505057157999545]