Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001238/0.001238, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001283/0.001283, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00179/0.00179, allocations: 67.88 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2533/0.2551, allocations: 50.53 MB / 408.7 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007412/0.2626, allocations: 5.54 MB / 414.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003041/0.2657, allocations: 1.885 MB / 416.2 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003344/0.266, allocations: 11.94 kB / 416.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001007/0.2671, allocations: 0.5213 MB / 416.7 MB, free: 9.547 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007093/0.2678, allocations: 381.9 kB / 417.1 MB, free: 9.172 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007526/0.2686, allocations: 374.5 kB / 417.4 MB, free: 8.812 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009691/0.2696, allocations: 0.8964 MB / 418.3 MB, free: 7.914 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005268/0.2701, allocations: 336.8 kB / 418.7 MB, free: 7.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004217/0.2705, allocations: 366.7 kB / 419 MB, free: 7.211 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005111/0.271, allocations: 446.4 kB / 419.5 MB, free: 6.773 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000103/0.2712, allocations: 76 kB / 419.5 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002132/0.2714, allocations: 124 kB / 419.7 MB, free: 6.578 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004703/0.2719, allocations: 0.5843 MB / 420.2 MB, free: 5.992 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006403/0.2725, allocations: 0.7454 MB / 421 MB, free: 5.242 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002185/0.2747, allocations: 2.132 MB / 423.1 MB, free: 3.102 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2747, allocations: 0 / 423.1 MB, free: 3.102 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2747, allocations: 0 / 423.1 MB, free: 3.102 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.105e-05/0.2748, allocations: 0 / 423.1 MB, free: 3.102 MB / 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.00342/0.2782, allocations: 2.153 MB / 425.3 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.2782, allocations: 8.031 kB / 425.3 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000112/0.2784, allocations: 82.72 kB / 425.4 MB, free: 0.793 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002823/0.2787, allocations: 203.7 kB / 425.6 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002329/0.281, allocations: 1.515 MB / 427.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.682e-05/0.2811, allocations: 66.7 kB / 427.1 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.137e-05/0.2812, allocations: 55.94 kB / 427.2 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001056/0.2823, allocations: 0.5854 MB / 427.8 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.2823, allocations: 3.938 kB / 427.8 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.97e-05/0.2823, allocations: 24 kB / 427.8 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.862e-05/0.2824, allocations: 12 kB / 427.8 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007011/0.2831, allocations: 343.7 kB / 428.2 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004792/0.2879, allocations: 3.247 MB / 431.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001099/0.289, allocations: 381.4 kB / 431.8 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004693/0.2895, allocations: 188.8 kB / 432 MB, free: 9.973 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.835e-05/0.2895, allocations: 0 / 432 MB, free: 9.973 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.431e-05/0.2896, allocations: 38.56 kB / 432 MB, free: 9.926 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.212e-06/0.2896, allocations: 0 / 432 MB, free: 9.926 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.002028/0.2916, allocations: 0.7045 MB / 432.7 MB, free: 9.195 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000128/0.2918, allocations: 209.6 kB / 432.9 MB, free: 8.941 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004085/0.2959, allocations: 2.904 MB / 435.8 MB, free: 5.992 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.524e-05/0.2959, allocations: 33.7 kB / 435.8 MB, free: 5.953 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007568/0.2967, allocations: 0.786 MB / 436.6 MB, free: 5.156 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.61e-05/0.2968, allocations: 83.31 kB / 436.7 MB, free: 5.074 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001221/0.2969, allocations: 69.97 kB / 436.8 MB, free: 5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.2971, allocations: 326 kB / 437.1 MB, free: 4.676 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003352/0.2974, allocations: 116.6 kB / 437.2 MB, free: 4.562 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004924/0.2979, allocations: 292.8 kB / 437.5 MB, free: 4.207 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000798/0.2987, allocations: 354.3 kB / 437.8 MB, free: 3.809 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/0.2988, allocations: 4 kB / 437.8 MB, free: 3.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001288/0.3001, allocations: 0.5689 MB / 438.4 MB, free: 3.227 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/0.3001, allocations: 4 kB / 438.4 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.3001, allocations: 8 kB / 438.4 MB, free: 3.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002862/0.3004, allocations: 56.81 kB / 438.5 MB, free: 3.156 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002934/0.3007, allocations: 71.91 kB / 438.6 MB, free: 3.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001824/0.3025, allocations: 1.732 MB / 440.3 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006141/0.3032, allocations: 55.7 kB / 440.3 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.085e-05/0.3032, allocations: 16 kB / 440.4 MB, free: 1.148 MB / 350.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.0008375/0.3041, allocations: 0.5873 MB / 440.9 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002653/0.3043, allocations: 174.9 kB / 441.1 MB, free: 388 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001237/0.3056, allocations: 0.5103 MB / 441.6 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.145e-06/0.3056, allocations: 0 / 441.6 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.793e-06/0.3056, allocations: 0 / 441.6 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.3056, allocations: 3.984 kB / 441.6 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002866/0.3085, allocations: 1.692 MB / 443.3 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.3085, allocations: 0 / 443.3 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002391/0.3088, allocations: 47.91 kB / 443.4 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000192/0.309, allocations: 52.84 kB / 443.4 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.264e-05/0.309, allocations: 4 kB / 443.4 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001742/0.3107, allocations: 1.666 MB / 445.1 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3108, allocations: 0 / 445.1 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001689/0.3125, allocations: 0.7309 MB / 445.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007258/0.3132, allocations: 391.9 kB / 446.2 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000139/0.3133, allocations: 11.98 kB / 446.2 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004149/0.3138, allocations: 39.95 kB / 446.3 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/0.3139, allocations: 31.97 kB / 446.3 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.3139, allocations: 8 kB / 446.3 MB, free: 10.93 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003222/0.3172, allocations: 2.079 MB / 448.4 MB, free: 8.832 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3172, allocations: 0 / 448.4 MB, free: 8.832 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009522/0.3181, allocations: 199.7 kB / 448.6 MB, free: 8.637 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.003042/0.3212, allocations: 1.52 MB / 450.1 MB, free: 7.203 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001091/0.3223, allocations: 439.1 kB / 450.5 MB, free: 6.762 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.3223, allocations: 8.062 kB / 450.5 MB, free: 6.754 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005259/0.3228, allocations: 266.5 kB / 450.8 MB, free: 6.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001375/0.3242, allocations: 228.1 kB / 451 MB, free: 6.258 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02894/0.3532, allocations: 17.55 MB / 468.6 MB, free: 4.379 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001279/0.3545, allocations: 1.355 MB / 469.9 MB, free: 2.992 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005683/0.3551, allocations: 241.6 kB / 470.1 MB, free: 2.754 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007903/0.3559, allocations: 0.5735 MB / 470.7 MB, free: 2.18 MB / 382.1 MB Notification: Performance of SimCode: time 8.71e-07/0.3559, allocations: 0 / 470.7 MB, free: 2.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07441/0.4303, allocations: 32.77 MB / 0.4917 GB, free: 1.629 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.59/15.02, allocations: 10.42 kB / 0.4917 GB, free: 1.621 MB / 414.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.csv","/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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches