Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 109.4 kB / 17.73 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001149/0.001149, allocations: 184.1 kB / 18.66 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.416/1.416, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 55.92 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08846/0.08974, allocations: 46.61 MB / 374.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.006374/0.09615, allocations: 5.024 MB / 379.7 MB, free: 36 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1933/0.2895, allocations: 1.349 MB / 381 MB, free: 9.113 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001025/0.2905, allocations: 9.594 kB / 381 MB, free: 9.113 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007889/0.2914, allocations: 162.4 kB / 381.2 MB, free: 9.074 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00122/0.2926, allocations: 335.9 kB / 381.5 MB, free: 8.926 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008287/0.2935, allocations: 233 kB / 381.7 MB, free: 8.914 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001934/0.2954, allocations: 1.183 MB / 382.9 MB, free: 8.629 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007047/0.2962, allocations: 311.6 kB / 383.2 MB, free: 8.566 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009834/0.2972, allocations: 455 kB / 383.7 MB, free: 8.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001154/0.2983, allocations: 0.5112 MB / 384.2 MB, free: 8.266 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004209/0.2988, allocations: 103.1 kB / 384.3 MB, free: 8.266 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006645/0.2995, allocations: 106.1 kB / 384.4 MB, free: 8.266 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003386/0.2998, allocations: 222.7 kB / 384.6 MB, free: 8.121 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001546/0.3014, allocations: 0.5211 MB / 385.1 MB, free: 7.82 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002375/0.3038, allocations: 1.207 MB / 386.3 MB, free: 7.375 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3038, allocations: 0 / 386.3 MB, free: 7.375 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3038, allocations: 0 / 386.3 MB, free: 7.375 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.066e-05/0.3038, allocations: 0 / 386.3 MB, free: 7.375 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.002578/0.3064, allocations: 1.369 MB / 387.7 MB, free: 6.422 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.3065, allocations: 9.594 kB / 387.7 MB, free: 6.422 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001898/0.3067, allocations: 119.8 kB / 387.8 MB, free: 6.332 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000234/0.3069, allocations: 115.9 kB / 387.9 MB, free: 6.277 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00113/0.308, allocations: 0.5949 MB / 388.5 MB, free: 5.863 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001958/0.3082, allocations: 145.9 kB / 388.7 MB, free: 5.746 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/0.3084, allocations: 65.05 kB / 388.7 MB, free: 5.723 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001551/0.3099, allocations: 0.8582 MB / 389.6 MB, free: 5.191 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.199e-05/0.31, allocations: 4 kB / 389.6 MB, free: 5.188 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.785e-05/0.31, allocations: 28.94 kB / 389.6 MB, free: 5.168 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.614e-05/0.3101, allocations: 13.81 kB / 389.6 MB, free: 5.168 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001447/0.3115, allocations: 0.6114 MB / 390.3 MB, free: 4.977 MB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003525/0.3151, allocations: 2.089 MB / 392.3 MB, free: 3.773 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001319/0.3164, allocations: 0.8561 MB / 393.2 MB, free: 3.246 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008039/0.3172, allocations: 395.6 kB / 393.6 MB, free: 3.102 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.474e-05/0.3173, allocations: 14.69 kB / 393.6 MB, free: 3.102 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.011e-05/0.3173, allocations: 50.53 kB / 393.7 MB, free: 3.051 MB / 318.1 MB Notification: Performance of pre-optimization done (n=73): time 2.775e-06/0.3173, allocations: 0 / 393.7 MB, free: 3.051 MB / 318.1 MB Notification: Performance of matching and sorting (n=73): time 0.0051/0.3224, allocations: 1.798 MB / 395.4 MB, free: 2.211 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001567/0.3226, allocations: 0.8225 MB / 396.3 MB, free: 1.207 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009046/0.3235, allocations: 0.6343 MB / 396.9 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001157/0.3237, allocations: 45.45 kB / 396.9 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002247/0.3239, allocations: 352.2 kB / 397.3 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001896/0.3241, allocations: 257.8 kB / 397.5 MB, free: 416 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002252/0.3243, allocations: 148.1 kB / 397.7 MB, free: 340 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.3245, allocations: 389.8 kB / 398.1 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007471/0.3252, allocations: 271.3 kB / 398.3 MB, free: 15.89 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001067/0.3263, allocations: 0.5496 MB / 398.9 MB, free: 15.49 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001423/0.3278, allocations: 0.6846 MB / 399.6 MB, free: 15.13 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.3278, allocations: 0 / 399.6 MB, free: 15.13 MB / 334.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002936/0.3307, allocations: 1.096 MB / 400.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.418e-05/0.3308, allocations: 86.27 kB / 400.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.839e-06/0.3308, allocations: 2.25 kB / 400.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007401/0.3316, allocations: 232.9 kB / 401 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006398/0.3322, allocations: 144.2 kB / 401.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009727/0.342, allocations: 6.949 MB / 408.1 MB, free: 7.996 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001278/0.3433, allocations: 98.66 kB / 408.2 MB, free: 7.938 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001563/0.3435, allocations: 21.47 kB / 408.2 MB, free: 7.934 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (69): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(3,3), (1,3), (1,7), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0007253/0.3442, allocations: 228.7 kB / 408.4 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003824/0.3446, allocations: 97.03 kB / 408.5 MB, free: 7.695 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002786/0.3449, allocations: 89.12 kB / 408.6 MB, free: 7.621 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.497e-06/0.3449, allocations: 6.938 kB / 408.6 MB, free: 7.621 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.544e-05/0.3449, allocations: 0.9375 kB / 408.6 MB, free: 7.621 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003009/0.3479, allocations: 1.235 MB / 409.8 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004546/0.3525, allocations: 1.928 MB / 411.8 MB, free: 5.387 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.682e-06/0.3525, allocations: 1.062 kB / 411.8 MB, free: 5.387 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007039/0.3533, allocations: 149.5 kB / 411.9 MB, free: 5.344 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005664/0.3538, allocations: 194.2 kB / 412.1 MB, free: 5.242 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.491e-05/0.3539, allocations: 20 kB / 412.1 MB, free: 5.227 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006919/0.3608, allocations: 5.348 MB / 417.5 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.3609, allocations: 1.188 kB / 417.5 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003645/0.3645, allocations: 1.4 MB / 418.9 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00061/0.3652, allocations: 235.5 kB / 419.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002298/0.3654, allocations: 24.44 kB / 419.1 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007255/0.3661, allocations: 52.69 kB / 419.2 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000183/0.3663, allocations: 57.45 kB / 419.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.263e-05/0.3664, allocations: 22.33 kB / 419.3 MB, free: 15.1 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006371/0.367, allocations: 463.1 kB / 419.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.367, allocations: 0 / 419.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001057/0.3681, allocations: 282.7 kB / 420 MB, free: 14.79 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.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 (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,3), (1,3), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003622/0.3717, allocations: 1.973 MB / 422 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002472/0.3742, allocations: 1.363 MB / 423.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.757e-06/0.3742, allocations: 4 kB / 423.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001476/0.3757, allocations: 0.7652 MB / 424.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001289/0.377, allocations: 244.2 kB / 424.3 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01385/0.3909, allocations: 7.548 MB / 431.9 MB, free: 3.383 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005445/0.3915, allocations: 0.9479 MB / 432.8 MB, free: 2.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000486/0.392, allocations: 98.42 kB / 432.9 MB, free: 2.309 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003943/0.3924, allocations: 303.3 kB / 433.2 MB, free: 2.012 MB / 350.1 MB Notification: Performance of SimCode: time 1.232e-06/0.3924, allocations: 4 kB / 433.2 MB, free: 2.008 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08809/0.4805, allocations: 25.93 MB / 459.1 MB, free: 7.98 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.11/13.59, allocations: 11.78 kB / 459.2 MB, free: 7.969 MB / 382.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches