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.001082/0.001082, allocations: 114.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.001188/0.001187, allocations: 209.2 kB / 18.74 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.309/1.309, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 68.02 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2407/0.2419, allocations: 50.54 MB / 408.7 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.006915/0.2488, allocations: 5.544 MB / 414.3 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003137/0.252, allocations: 1.877 MB / 416.2 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005936/0.2526, allocations: 15.94 kB / 416.2 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001169/0.2539, allocations: 0.5252 MB / 416.7 MB, free: 9.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008903/0.2548, allocations: 385.9 kB / 417.1 MB, free: 9.191 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008881/0.2557, allocations: 374.5 kB / 417.4 MB, free: 8.832 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001201/0.2569, allocations: 0.9003 MB / 418.3 MB, free: 7.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005491/0.2575, allocations: 336.8 kB / 418.7 MB, free: 7.586 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004733/0.2579, allocations: 366.7 kB / 419 MB, free: 7.227 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005711/0.2585, allocations: 450.4 kB / 419.5 MB, free: 6.785 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001362/0.2587, allocations: 80 kB / 419.5 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002491/0.2589, allocations: 124 kB / 419.7 MB, free: 6.586 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000417/0.2593, allocations: 0.5882 MB / 420.3 MB, free: 5.996 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007455/0.2601, allocations: 0.7338 MB / 421 MB, free: 5.258 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001964/0.2621, allocations: 2.128 MB / 423.1 MB, free: 3.121 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.2621, allocations: 4 kB / 423.1 MB, free: 3.117 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2621, allocations: 0 / 423.1 MB, free: 3.117 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.141e-05/0.2622, allocations: 0 / 423.1 MB, free: 3.117 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.00419/0.2664, allocations: 2.153 MB / 425.3 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.2664, allocations: 12.03 kB / 425.3 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001536/0.2666, allocations: 90.7 kB / 425.4 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003949/0.267, allocations: 195.7 kB / 425.6 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00261/0.2696, allocations: 1.523 MB / 427.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.773e-05/0.2697, allocations: 62.7 kB / 427.2 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.215e-05/0.2698, allocations: 48 kB / 427.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001125/0.2709, allocations: 0.5892 MB / 427.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/0.271, allocations: 3.938 kB / 427.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.123e-05/0.271, allocations: 20 kB / 427.8 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.445e-05/0.2711, allocations: 12 kB / 427.8 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007295/0.2718, allocations: 343.8 kB / 428.2 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005662/0.2775, allocations: 3.259 MB / 431.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001084/0.2786, allocations: 370.5 kB / 431.8 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004629/0.2791, allocations: 192.3 kB / 432 MB, free: 9.984 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.3e-05/0.2791, allocations: 0 / 432 MB, free: 9.984 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.122e-05/0.2792, allocations: 38.56 kB / 432 MB, free: 9.938 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 3.246e-06/0.2792, allocations: 4 kB / 432 MB, free: 9.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.002143/0.2813, allocations: 0.6977 MB / 432.7 MB, free: 9.207 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/0.2814, allocations: 213.6 kB / 432.9 MB, free: 8.949 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004558/0.286, allocations: 2.904 MB / 435.8 MB, free: 6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.402e-05/0.2861, allocations: 25.7 kB / 435.8 MB, free: 5.969 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007351/0.2868, allocations: 0.7939 MB / 436.6 MB, free: 5.164 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.937e-05/0.287, allocations: 79.31 kB / 436.7 MB, free: 5.086 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001323/0.2871, allocations: 73.97 kB / 436.8 MB, free: 5.008 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.2872, allocations: 318 kB / 437.1 MB, free: 4.691 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003444/0.2876, allocations: 116.6 kB / 437.2 MB, free: 4.578 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004331/0.288, allocations: 300.7 kB / 437.5 MB, free: 4.215 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00069/0.2887, allocations: 349.4 kB / 437.8 MB, free: 3.824 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.885e-06/0.2887, allocations: 0 / 437.8 MB, free: 3.824 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001485/0.2902, allocations: 0.5751 MB / 438.4 MB, free: 3.238 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.626e-05/0.2903, allocations: 7.281 kB / 438.4 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/0.2903, allocations: 4 kB / 438.4 MB, free: 3.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003196/0.2906, allocations: 60.81 kB / 438.5 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002911/0.2909, allocations: 83.95 kB / 438.6 MB, free: 3.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001663/0.2926, allocations: 1.72 MB / 440.3 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006273/0.2932, allocations: 59.7 kB / 440.4 MB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.017e-05/0.2933, allocations: 20.09 kB / 440.4 MB, free: 1.152 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.0008265/0.2941, allocations: 0.5834 MB / 441 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003617/0.2945, allocations: 174.8 kB / 441.1 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001337/0.2958, allocations: 0.5026 MB / 441.6 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.2958, allocations: 11.94 kB / 441.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.265e-06/0.2959, allocations: 0 / 441.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.2959, allocations: 0 / 441.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00316/0.299, allocations: 1.69 MB / 443.3 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.2991, allocations: 4.031 kB / 443.3 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002366/0.2993, allocations: 47.91 kB / 443.4 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001788/0.2995, allocations: 52.81 kB / 443.4 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.836e-05/0.2995, allocations: 0 / 443.4 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001401/0.3009, allocations: 1.673 MB / 445.1 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.3009, allocations: 7.922 kB / 445.1 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00151/0.3025, allocations: 0.7232 MB / 445.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008515/0.3033, allocations: 383.9 kB / 446.2 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002658/0.3036, allocations: 8 kB / 446.2 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005242/0.3041, allocations: 43.95 kB / 446.3 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.3043, allocations: 35.95 kB / 446.3 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.955e-05/0.3043, allocations: 4 kB / 446.3 MB, free: 10.94 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003187/0.3075, allocations: 2.079 MB / 448.4 MB, free: 8.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3075, allocations: 0 / 448.4 MB, free: 8.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008901/0.3084, allocations: 199.7 kB / 448.6 MB, free: 8.645 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.00268/0.3111, allocations: 1.521 MB / 450.1 MB, free: 7.211 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001069/0.3122, allocations: 446.5 kB / 450.5 MB, free: 6.762 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.3122, allocations: 4 kB / 450.5 MB, free: 6.758 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005314/0.3127, allocations: 263.2 kB / 450.8 MB, free: 6.488 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001274/0.314, allocations: 224.7 kB / 451 MB, free: 6.266 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02705/0.3411, allocations: 17.55 MB / 468.6 MB, free: 4.387 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001067/0.3422, allocations: 1.363 MB / 469.9 MB, free: 2.992 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005803/0.3428, allocations: 237.7 kB / 470.2 MB, free: 2.758 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008132/0.3436, allocations: 0.5813 MB / 470.7 MB, free: 2.176 MB / 382.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3436, allocations: 0 / 470.7 MB, free: 2.176 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06776/0.4114, allocations: 32.76 MB / 0.4917 GB, free: 1.637 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.95/14.36, allocations: 14.69 kB / 0.4917 GB, free: 1.625 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.0.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