Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.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.Thermal.HeatTransfer.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001087/0.001087, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001233/0.001233, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002101/0.002101, allocations: 63.58 kB / 307 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1072, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs): time 0.004141/0.1114, allocations: 3.08 MB / 360.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001804/0.1132, allocations: 1.025 MB / 361.7 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000205/0.1135, allocations: 11.94 kB / 361.7 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002427/0.1137, allocations: 98.98 kB / 361.8 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001758/0.1139, allocations: 95 kB / 361.9 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004962/0.1144, allocations: 227.6 kB / 362.1 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005871/0.115, allocations: 0.5371 MB / 362.6 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004504/0.1155, allocations: 226.6 kB / 362.9 MB, free: 8.664 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003025/0.1158, allocations: 183.3 kB / 363 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002286/0.116, allocations: 179 kB / 363.2 MB, free: 8.309 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.143e-05/0.1161, allocations: 36 kB / 363.3 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001367/0.1163, allocations: 51.94 kB / 363.3 MB, free: 8.223 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.988e-05/0.1163, allocations: 95.62 kB / 363.4 MB, free: 8.129 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001945/0.1166, allocations: 230.7 kB / 363.6 MB, free: 7.902 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000676/0.1172, allocations: 0.5608 MB / 364.2 MB, free: 7.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1172, allocations: 0 / 364.2 MB, free: 7.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.1173, allocations: 0 / 364.2 MB, free: 7.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.939e-06/0.1173, allocations: 0 / 364.2 MB, free: 7.34 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001178/0.1185, allocations: 0.7405 MB / 364.9 MB, free: 6.551 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.346e-05/0.1185, allocations: 8.031 kB / 364.9 MB, free: 6.543 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.053e-05/0.1186, allocations: 90.7 kB / 365 MB, free: 6.445 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002087/0.1188, allocations: 67.83 kB / 365.1 MB, free: 6.379 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006421/0.1195, allocations: 398.3 kB / 365.5 MB, free: 5.953 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.626e-05/0.1195, allocations: 29 kB / 365.5 MB, free: 5.926 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.132e-05/0.1196, allocations: 51.84 kB / 365.6 MB, free: 5.875 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006611/0.1203, allocations: 483.4 kB / 366 MB, free: 5.324 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/0.1203, allocations: 7.938 kB / 366 MB, free: 5.316 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.111e-05/0.1203, allocations: 16 kB / 366 MB, free: 5.301 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.301e-05/0.1203, allocations: 16 kB / 366.1 MB, free: 5.285 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004457/0.1208, allocations: 250.1 kB / 366.3 MB, free: 5.039 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002247/0.123, allocations: 2.834 MB / 369.1 MB, free: 2.055 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003858/0.1234, allocations: 158.7 kB / 369.3 MB, free: 1.891 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001299/0.1236, allocations: 64.88 kB / 369.4 MB, free: 1.824 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001684/0.1238, allocations: 85.11 kB / 369.4 MB, free: 1.723 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.362e-05/0.1238, allocations: 42.44 kB / 369.5 MB, free: 1.672 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.613e-06/0.1238, allocations: 4 kB / 369.5 MB, free: 1.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.001195/0.125, allocations: 0.6212 MB / 370.1 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.082e-05/0.1251, allocations: 51.41 kB / 370.2 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003191/0.1254, allocations: 345.6 kB / 370.5 MB, free: 0.582 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.764e-05/0.1254, allocations: 33.64 kB / 370.5 MB, free: 0.543 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00018/0.1256, allocations: 306.9 kB / 370.8 MB, free: 244 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.698e-05/0.1257, allocations: 63.09 kB / 370.9 MB, free: 180 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.587e-05/0.1258, allocations: 69.56 kB / 371 MB, free: 104 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.1421/0.2678, allocations: 350 kB / 371.3 MB, free: 20.08 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002466/0.2681, allocations: 64.27 kB / 371.4 MB, free: 20.08 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002268/0.2683, allocations: 222.7 kB / 371.6 MB, free: 19.9 MB / 302.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: inverseCapacity.mass.T = $START.inverseCapacity.mass.T ($START.directCapacity.heatFlowToTemperature.y = $START.inverseCapacity.mass.T) Notification: Performance of analyzeInitialSystem (initialization): time 0.0009535/0.2693, allocations: 0.5137 MB / 372.1 MB, free: 19.62 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.2693, allocations: 0.9375 kB / 372.1 MB, free: 19.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006399/0.27, allocations: 364.2 kB / 372.5 MB, free: 19.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.745e-05/0.27, allocations: 8.406 kB / 372.5 MB, free: 19.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.67e-05/0.27, allocations: 5.312 kB / 372.5 MB, free: 19.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000155/0.2702, allocations: 35.08 kB / 372.5 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002519/0.2705, allocations: 78.39 kB / 372.6 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009848/0.2714, allocations: 1.631 MB / 374.2 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001581/0.2716, allocations: 12.3 kB / 374.2 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.354e-05/0.2716, allocations: 16.5 kB / 374.2 MB, free: 18.04 MB / 302.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: inverseCapacity.mass.T = $START.inverseCapacity.mass.T. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 38 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001878/0.2718, allocations: 186.3 kB / 374.4 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.109e-05/0.2719, allocations: 40.95 kB / 374.5 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.969e-05/0.272, allocations: 37.59 kB / 374.5 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.272, allocations: 6.109 kB / 374.5 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.272, allocations: 1.094 kB / 374.5 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.272, allocations: 1.359 kB / 374.5 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008589/0.2729, allocations: 0.7125 MB / 375.2 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.2729, allocations: 3.156 kB / 375.2 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001723/0.273, allocations: 37.23 kB / 375.3 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.436e-05/0.2731, allocations: 23.39 kB / 375.3 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.442e-05/0.2732, allocations: 6.734 kB / 375.3 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006668/0.2738, allocations: 1.424 MB / 376.7 MB, free: 16.04 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2738, allocations: 0 / 376.7 MB, free: 16.04 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005028/0.2743, allocations: 372.5 kB / 377.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.852e-05/0.2744, allocations: 107 kB / 377.2 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.9e-05/0.2744, allocations: 11.27 kB / 377.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.2746, allocations: 2.875 kB / 377.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.707e-05/0.2746, allocations: 15 kB / 377.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.165e-05/0.2746, allocations: 8.297 kB / 377.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003117/0.275, allocations: 237.5 kB / 377.4 MB, free: 15.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.275, allocations: 1.219 kB / 377.4 MB, free: 15.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000456/0.2754, allocations: 66.38 kB / 377.5 MB, free: 15.57 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inverseCapacity.mass.T,capacitor3a.T,capacitor3b.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006384/0.2761, allocations: 0.8947 MB / 378.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005467/0.2766, allocations: 326.6 kB / 378.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.2766, allocations: 0 / 378.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001818/0.2768, allocations: 183.8 kB / 378.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003356/0.2772, allocations: 37.52 kB / 378.9 MB, free: 14.46 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003568/0.2808, allocations: 3.37 MB / 382.3 MB, free: 12.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002833/0.2811, allocations: 0.82 MB / 383.1 MB, free: 11.32 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001521/0.2812, allocations: 40.34 kB / 383.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001556/0.2814, allocations: 157.9 kB / 383.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of SimCode: time 4.5e-07/0.2814, allocations: 1.156 kB / 383.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0269/0.3083, allocations: 6.119 MB / 389.4 MB, free: 10.03 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.224/9.532, allocations: 13.47 kB / 389.5 MB, free: 10.02 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches