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.001122/0.001122, allocations: 114.4 kB / 17.74 MB, free: 5.355 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.001135/0.001135, allocations: 183.1 kB / 18.66 MB, free: 4.434 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.447/1.447, allocations: 205.1 MB / 224.5 MB, free: 12.29 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.001371/0.001371, allocations: 55.92 kB / 328 MB, free: 3.828 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09222/0.0936, allocations: 46.62 MB / 374.6 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.006823/0.1005, allocations: 5.028 MB / 379.7 MB, free: 40 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1806/0.2811, allocations: 1.344 MB / 381 MB, free: 9.145 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006453/0.2817, allocations: 10.16 kB / 381 MB, free: 9.145 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000563/0.2824, allocations: 159 kB / 381.2 MB, free: 9.102 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001004/0.2834, allocations: 338 kB / 381.5 MB, free: 8.949 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006207/0.2841, allocations: 229 kB / 381.7 MB, free: 8.941 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00136/0.2854, allocations: 1.185 MB / 382.9 MB, free: 8.656 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005409/0.286, allocations: 310.8 kB / 383.2 MB, free: 8.598 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006265/0.2866, allocations: 457.8 kB / 383.7 MB, free: 8.512 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005652/0.2872, allocations: 0.5011 MB / 384.2 MB, free: 8.277 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001569/0.2874, allocations: 107.9 kB / 384.3 MB, free: 8.273 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001836/0.2875, allocations: 109.4 kB / 384.4 MB, free: 8.27 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001737/0.2877, allocations: 223.5 kB / 384.6 MB, free: 8.125 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000462/0.2882, allocations: 0.5201 MB / 385.1 MB, free: 7.824 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001404/0.2896, allocations: 1.206 MB / 386.3 MB, free: 7.379 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.2896, allocations: 1.031 kB / 386.3 MB, free: 7.379 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.2896, allocations: 0 / 386.3 MB, free: 7.379 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.675e-05/0.2897, allocations: 0 / 386.3 MB, free: 7.379 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.002525/0.2922, allocations: 1.373 MB / 387.7 MB, free: 6.426 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.2922, allocations: 11.41 kB / 387.7 MB, free: 6.426 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001602/0.2924, allocations: 109.8 kB / 387.8 MB, free: 6.344 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001948/0.2926, allocations: 119.4 kB / 387.9 MB, free: 6.285 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008973/0.2935, allocations: 0.6004 MB / 388.5 MB, free: 5.863 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001848/0.2937, allocations: 139.2 kB / 388.7 MB, free: 5.754 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.2938, allocations: 64.25 kB / 388.7 MB, free: 5.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001494/0.2953, allocations: 0.8616 MB / 389.6 MB, free: 5.195 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.28e-05/0.2954, allocations: 2.969 kB / 389.6 MB, free: 5.195 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.965e-05/0.2954, allocations: 28.69 kB / 389.6 MB, free: 5.176 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.561e-05/0.2955, allocations: 16.89 kB / 389.6 MB, free: 5.172 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001346/0.2968, allocations: 0.616 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.003194/0.3, allocations: 2.088 MB / 392.3 MB, free: 3.773 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001307/0.3013, allocations: 0.851 MB / 393.2 MB, free: 3.25 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007528/0.3021, allocations: 395.8 kB / 393.6 MB, free: 3.105 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.115e-05/0.3022, allocations: 18.55 kB / 393.6 MB, free: 3.102 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.076e-05/0.3022, allocations: 46.88 kB / 393.6 MB, free: 3.055 MB / 318.1 MB Notification: Performance of pre-optimization done (n=73): time 2.405e-06/0.3022, allocations: 0 / 393.6 MB, free: 3.055 MB / 318.1 MB Notification: Performance of matching and sorting (n=73): time 0.004851/0.3071, allocations: 1.802 MB / 395.5 MB, free: 2.211 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001413/0.3072, allocations: 0.8226 MB / 396.3 MB, free: 1.207 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007602/0.308, allocations: 0.6302 MB / 396.9 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.95e-05/0.3081, allocations: 45.55 kB / 396.9 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002315/0.3083, allocations: 350.2 kB / 397.3 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000171/0.3085, allocations: 265 kB / 397.5 MB, free: 416 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002085/0.3087, allocations: 149.1 kB / 397.7 MB, free: 340 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.3089, allocations: 389.2 kB / 398.1 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006545/0.3095, allocations: 266.5 kB / 398.3 MB, free: 15.9 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008909/0.3104, allocations: 0.5502 MB / 398.9 MB, free: 15.49 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001369/0.3118, allocations: 0.6881 MB / 399.6 MB, free: 15.13 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.3118, allocations: 0 / 399.6 MB, free: 15.13 MB / 334.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00267/0.3145, allocations: 1.093 MB / 400.7 MB, free: 14.65 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.751e-05/0.3146, allocations: 94.88 kB / 400.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.3146, allocations: 2.062 kB / 400.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006853/0.3153, allocations: 231.2 kB / 401 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006066/0.3159, allocations: 141 kB / 401.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007909/0.3238, allocations: 6.939 MB / 408.1 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001074/0.3249, allocations: 99.41 kB / 408.2 MB, free: 7.941 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.084e-05/0.325, allocations: 24.62 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.0003864/0.3254, allocations: 233.3 kB / 408.4 MB, free: 7.742 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001654/0.3256, allocations: 93.05 kB / 408.5 MB, free: 7.695 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001662/0.3257, allocations: 88.84 kB / 408.6 MB, free: 7.621 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.3258, allocations: 7.875 kB / 408.6 MB, free: 7.621 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.3258, allocations: 0 / 408.6 MB, free: 7.621 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00247/0.3283, allocations: 1.235 MB / 409.8 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004027/0.3323, allocations: 1.929 MB / 411.8 MB, free: 5.387 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.3323, allocations: 6.219 kB / 411.8 MB, free: 5.383 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006766/0.333, allocations: 144.3 kB / 411.9 MB, free: 5.344 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005336/0.3335, allocations: 193.3 kB / 412.1 MB, free: 5.242 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.914e-05/0.3336, allocations: 19.56 kB / 412.1 MB, free: 5.227 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006595/0.3402, allocations: 5.348 MB / 417.5 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.3402, allocations: 3.984 kB / 417.5 MB, free: 172 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003387/0.3436, allocations: 1.398 MB / 418.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004796/0.3441, allocations: 238.3 kB / 419.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001287/0.3443, allocations: 18.41 kB / 419.1 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000668/0.3449, allocations: 52.47 kB / 419.2 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001694/0.3451, allocations: 59.05 kB / 419.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.935e-05/0.3452, allocations: 21.05 kB / 419.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005511/0.3457, allocations: 464.2 kB / 419.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3457, allocations: 0 / 419.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009717/0.3467, allocations: 283.8 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.003661/0.3504, allocations: 1.974 MB / 422 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002696/0.3531, allocations: 1.365 MB / 423.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/0.3531, allocations: 0 / 423.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001346/0.3545, allocations: 0.7639 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.001131/0.3556, allocations: 240.8 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.01285/0.3685, allocations: 7.552 MB / 431.9 MB, free: 3.383 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005508/0.3691, allocations: 0.944 MB / 432.8 MB, free: 2.414 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000518/0.3696, allocations: 106.4 kB / 432.9 MB, free: 2.305 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004171/0.37, allocations: 299.3 kB / 433.2 MB, free: 2.012 MB / 350.1 MB Notification: Performance of SimCode: time 8.71e-07/0.37, allocations: 0 / 433.2 MB, free: 2.012 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07693/0.447, allocations: 25.94 MB / 459.1 MB, free: 7.984 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.86/13.3, allocations: 19.84 kB / 459.2 MB, free: 7.965 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