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.00172/0.00172, allocations: 113.4 kB / 17.73 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.001826/0.001826, allocations: 184.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.419/1.419, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.00167/0.00167, allocations: 59.91 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08988/0.09157, 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.006887/0.09849, allocations: 5.036 MB / 379.7 MB, free: 32 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1793/0.2779, allocations: 1.345 MB / 381 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003376/0.2783, allocations: 10.56 kB / 381 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004306/0.2788, allocations: 164.4 kB / 381.2 MB, free: 9.668 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005978/0.2794, allocations: 324 kB / 381.5 MB, free: 9.516 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004607/0.2798, allocations: 229.1 kB / 381.7 MB, free: 9.508 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001209/0.281, allocations: 1.177 MB / 382.9 MB, free: 9.109 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00048/0.2815, allocations: 313.5 kB / 383.2 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005884/0.2821, allocations: 454 kB / 383.7 MB, free: 8.781 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005839/0.2827, allocations: 0.5022 MB / 384.2 MB, free: 8.535 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001519/0.2829, allocations: 107.2 kB / 384.3 MB, free: 8.531 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001838/0.2831, allocations: 109.2 kB / 384.4 MB, free: 8.527 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001756/0.2833, allocations: 220.5 kB / 384.6 MB, free: 8.387 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004418/0.2837, allocations: 0.519 MB / 385.1 MB, free: 8.086 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001259/0.285, allocations: 1.21 MB / 386.3 MB, free: 7.641 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.285, allocations: 0 / 386.3 MB, free: 7.641 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.285, allocations: 0 / 386.3 MB, free: 7.641 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.515e-05/0.285, allocations: 1.156 kB / 386.3 MB, free: 7.641 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.002288/0.2873, allocations: 1.372 MB / 387.7 MB, free: 6.684 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.2874, allocations: 11.25 kB / 387.7 MB, free: 6.684 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001632/0.2875, allocations: 118.5 kB / 387.8 MB, free: 6.594 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001976/0.2877, allocations: 116.4 kB / 387.9 MB, free: 6.539 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009416/0.2887, allocations: 0.5918 MB / 388.5 MB, free: 6.125 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001708/0.2889, allocations: 142.7 kB / 388.7 MB, free: 6.012 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.458e-05/0.289, allocations: 64.14 kB / 388.7 MB, free: 5.988 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001395/0.2904, allocations: 0.8621 MB / 389.6 MB, free: 5.453 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.141e-05/0.2904, allocations: 5.812 kB / 389.6 MB, free: 5.449 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.607e-05/0.2905, allocations: 29.56 kB / 389.6 MB, free: 5.43 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.718e-05/0.2905, allocations: 13.25 kB / 389.6 MB, free: 5.43 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001422/0.2919, allocations: 0.6071 MB / 390.2 MB, free: 5.242 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.00339/0.2953, allocations: 2.097 MB / 392.3 MB, free: 4.031 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001348/0.2967, allocations: 0.8578 MB / 393.2 MB, free: 3.504 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008002/0.2975, allocations: 393 kB / 393.6 MB, free: 3.363 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.088e-05/0.2976, allocations: 11.19 kB / 393.6 MB, free: 3.363 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.42e-05/0.2976, allocations: 54.7 kB / 393.6 MB, free: 3.309 MB / 318.1 MB Notification: Performance of pre-optimization done (n=73): time 3.046e-06/0.2976, allocations: 0 / 393.6 MB, free: 3.309 MB / 318.1 MB Notification: Performance of matching and sorting (n=73): time 0.005012/0.3026, allocations: 1.797 MB / 395.4 MB, free: 2.473 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001835/0.3028, allocations: 0.823 MB / 396.3 MB, free: 1.469 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008425/0.3037, allocations: 0.6334 MB / 396.9 MB, free: 1.184 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.835e-05/0.3038, allocations: 45.77 kB / 396.9 MB, free: 1.141 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002413/0.304, allocations: 346.1 kB / 397.3 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001893/0.3042, allocations: 262.9 kB / 397.5 MB, free: 0.668 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002377/0.3045, allocations: 152.7 kB / 397.7 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.3046, allocations: 385.6 kB / 398.1 MB, free: 252 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000659/0.3052, allocations: 270.1 kB / 398.3 MB, free: 160 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009428/0.3062, allocations: 0.5515 MB / 398.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001424/0.3076, allocations: 0.6827 MB / 399.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.3076, allocations: 1.375 kB / 399.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002742/0.3104, allocations: 1.096 MB / 400.7 MB, free: 14.91 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.054e-05/0.3105, allocations: 90.23 kB / 400.7 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.3105, allocations: 1.031 kB / 400.7 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007059/0.3112, allocations: 238.2 kB / 401 MB, free: 14.72 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006152/0.3118, allocations: 136.1 kB / 401.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008824/0.3207, allocations: 6.942 MB / 408.1 MB, free: 8.238 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001134/0.3218, allocations: 98.12 kB / 408.1 MB, free: 8.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.976e-05/0.3219, allocations: 29.36 kB / 408.2 MB, free: 8.168 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.0004229/0.3224, allocations: 229.2 kB / 408.4 MB, free: 7.98 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001755/0.3225, allocations: 92.92 kB / 408.5 MB, free: 7.934 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001896/0.3227, allocations: 89.38 kB / 408.6 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.3227, allocations: 7.469 kB / 408.6 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/0.3228, allocations: 0 / 408.6 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002632/0.3254, allocations: 1.235 MB / 409.8 MB, free: 6.926 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004068/0.3295, allocations: 1.933 MB / 411.8 MB, free: 5.621 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.3295, allocations: 5.062 kB / 411.8 MB, free: 5.617 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006849/0.3302, allocations: 140.5 kB / 411.9 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000566/0.3308, allocations: 196.9 kB / 412.1 MB, free: 5.477 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.285e-05/0.3308, allocations: 20.3 kB / 412.1 MB, free: 5.461 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00703/0.3379, allocations: 5.347 MB / 417.5 MB, free: 420 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.3379, allocations: 0 / 417.5 MB, free: 420 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003333/0.3412, allocations: 1.397 MB / 418.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004664/0.3417, allocations: 237 kB / 419.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001194/0.3418, allocations: 24.64 kB / 419.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006668/0.3425, allocations: 47.58 kB / 419.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001895/0.3427, allocations: 62.42 kB / 419.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.752e-05/0.3428, allocations: 20.8 kB / 419.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005972/0.3434, allocations: 459.9 kB / 419.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3434, allocations: 0 / 419.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001013/0.3444, allocations: 288.2 kB / 420 MB, free: 15.01 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.003782/0.3482, allocations: 1.973 MB / 421.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002611/0.3508, allocations: 1.365 MB / 423.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.3508, allocations: 0 / 423.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001516/0.3524, allocations: 0.7653 MB / 424.1 MB, free: 11.49 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00113/0.3535, allocations: 237 kB / 424.3 MB, free: 11.26 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01364/0.3672, allocations: 7.55 MB / 431.8 MB, free: 3.539 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006323/0.3678, allocations: 0.9479 MB / 432.8 MB, free: 2.566 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004996/0.3683, allocations: 98.44 kB / 432.9 MB, free: 2.465 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004259/0.3688, allocations: 307.3 kB / 433.2 MB, free: 2.164 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3688, allocations: 0 / 433.2 MB, free: 2.164 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07119/0.44, allocations: 25.93 MB / 459.1 MB, free: 8.145 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.68/14.12, allocations: 15.78 kB / 459.1 MB, free: 8.129 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