Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_4_0_0_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.0008895/0.0008896, allocations: 94.59 kB / 16.65 MB, free: 6.602 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.0009307/0.0009308, allocations: 172.7 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.202/1.202, allocations: 223.3 MB / 241.6 MB, free: 100 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002512/0.0002512, allocations: 7.984 kB / 301.5 MB, free: 5.988 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09308/0.09335, allocations: 50.41 MB / 351.9 MB, free: 3.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.004923/0.09831, allocations: 4.637 MB / 356.6 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002527/0.1009, allocations: 1.231 MB / 357.8 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004053/0.1013, allocations: 11.94 kB / 357.8 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003677/0.1017, allocations: 131.1 kB / 358 MB, free: 13.53 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005863/0.1023, allocations: 277.8 kB / 358.2 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000378/0.1027, allocations: 203.7 kB / 358.4 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009408/0.1036, allocations: 1.125 MB / 359.5 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003762/0.104, allocations: 286 kB / 359.8 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004364/0.1044, allocations: 410.3 kB / 360.2 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004725/0.1049, allocations: 473.9 kB / 360.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001055/0.105, allocations: 64 kB / 360.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001172/0.1052, allocations: 68 kB / 360.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001439/0.1053, allocations: 183.3 kB / 361 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004649/0.1058, allocations: 0.5032 MB / 361.5 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008375/0.1066, allocations: 1.129 MB / 362.6 MB, free: 8.812 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.1066, allocations: 0 / 362.6 MB, free: 8.812 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1066, allocations: 0 / 362.6 MB, free: 8.812 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.355e-05/0.1067, allocations: 0 / 362.6 MB, free: 8.812 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001961/0.1086, allocations: 1.193 MB / 363.8 MB, free: 7.551 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.1087, allocations: 16.03 kB / 363.8 MB, free: 7.535 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001591/0.1088, allocations: 127.7 kB / 364 MB, free: 7.398 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001564/0.109, allocations: 107.8 kB / 364.1 MB, free: 7.293 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000802/0.1098, allocations: 0.5871 MB / 364.7 MB, free: 6.668 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002934/0.1101, allocations: 174.9 kB / 364.8 MB, free: 6.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.563e-05/0.1102, allocations: 67.92 kB / 364.9 MB, free: 6.414 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001418/0.1116, allocations: 0.89 MB / 365.8 MB, free: 5.422 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.737e-05/0.1117, allocations: 4 kB / 365.8 MB, free: 5.418 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.384e-05/0.1117, allocations: 31.94 kB / 365.8 MB, free: 5.387 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.266e-05/0.1118, allocations: 16 kB / 365.8 MB, free: 5.371 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001509/0.1133, allocations: 0.6765 MB / 366.5 MB, free: 4.691 MB / 302.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.002949/0.1162, allocations: 2.104 MB / 368.6 MB, free: 2.477 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001403/0.1177, allocations: 0.8964 MB / 369.5 MB, free: 1.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008312/0.1185, allocations: 426.4 kB / 369.9 MB, free: 1.102 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.953e-05/0.1186, allocations: 20.58 kB / 369.9 MB, free: 1.082 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.707e-05/0.1186, allocations: 55.2 kB / 370 MB, free: 1.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=73): time 2.334e-06/0.1186, allocations: 0 / 370 MB, free: 1.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.165/0.2836, allocations: 1.99 MB / 372 MB, free: 24.28 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000181/0.2839, allocations: 0.8253 MB / 372.8 MB, free: 23.28 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001043/0.2849, allocations: 0.6344 MB / 373.4 MB, free: 23.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001262/0.285, allocations: 47.17 kB / 373.5 MB, free: 23.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002953/0.2853, allocations: 345.1 kB / 373.8 MB, free: 23.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002461/0.2856, allocations: 254.4 kB / 374.1 MB, free: 22.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/0.2857, allocations: 61.14 kB / 374.1 MB, free: 22.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.2859, allocations: 383.6 kB / 374.5 MB, free: 22.6 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009004/0.2868, allocations: 303.3 kB / 374.8 MB, free: 22.6 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001244/0.288, allocations: 0.5866 MB / 375.4 MB, free: 22.33 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001629/0.2897, allocations: 0.7426 MB / 376.1 MB, free: 22.15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.2897, allocations: 0 / 376.1 MB, free: 22.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002967/0.2926, allocations: 1.2 MB / 377.3 MB, free: 21.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.292e-05/0.2927, allocations: 88.84 kB / 377.4 MB, free: 21.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.2927, allocations: 1.344 kB / 377.4 MB, free: 21.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007706/0.2935, allocations: 256.1 kB / 377.7 MB, free: 21.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006687/0.2942, allocations: 152 kB / 377.8 MB, free: 21.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006533/0.3007, allocations: 6.497 MB / 384.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001082/0.3019, allocations: 120.5 kB / 384.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.218e-05/0.3019, allocations: 23.23 kB / 384.5 MB, free: 15.62 MB / 302.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.0003516/0.3023, allocations: 225.3 kB / 384.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001325/0.3024, allocations: 85.45 kB / 384.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000167/0.3026, allocations: 91.3 kB / 384.9 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.828e-06/0.3026, allocations: 8.328 kB / 384.9 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.308e-05/0.3026, allocations: 4 kB / 384.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002608/0.3052, allocations: 1.342 MB / 386.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004351/0.3096, allocations: 2.039 MB / 388.2 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.3096, allocations: 1.062 kB / 388.3 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007377/0.3104, allocations: 151.7 kB / 388.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005746/0.311, allocations: 217.1 kB / 388.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.297e-05/0.311, allocations: 13.95 kB / 388.6 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005578/0.3166, allocations: 5.071 MB / 393.7 MB, free: 9.113 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.3166, allocations: 0 / 393.7 MB, free: 9.113 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003746/0.3204, allocations: 1.533 MB / 395.2 MB, free: 8.492 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004812/0.3209, allocations: 242.4 kB / 395.5 MB, free: 8.297 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001045/0.321, allocations: 18.5 kB / 395.5 MB, free: 8.285 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006893/0.3217, allocations: 69.14 kB / 395.6 MB, free: 8.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002038/0.3219, allocations: 63.91 kB / 395.6 MB, free: 8.258 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.125e-05/0.322, allocations: 24.64 kB / 395.6 MB, free: 8.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005896/0.3226, allocations: 456 kB / 396.1 MB, free: 8.047 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3226, allocations: 0 / 396.1 MB, free: 8.047 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008889/0.3235, allocations: 282.5 kB / 396.4 MB, free: 8.008 MB / 302.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.003439/0.3269, allocations: 2.103 MB / 398.5 MB, free: 6.773 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002391/0.3293, allocations: 1.412 MB / 399.9 MB, free: 5.758 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.565e-06/0.3293, allocations: 2.75 kB / 399.9 MB, free: 5.758 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001371/0.3307, allocations: 0.8125 MB / 400.7 MB, free: 5.199 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001104/0.3318, allocations: 227.5 kB / 400.9 MB, free: 5.078 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01239/0.3442, allocations: 8.613 MB / 409.5 MB, free: 13.21 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005563/0.3448, allocations: 0.944 MB / 410.5 MB, free: 12.24 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005321/0.3454, allocations: 102.4 kB / 410.6 MB, free: 12.13 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004296/0.3458, allocations: 295.3 kB / 410.9 MB, free: 11.84 MB / 318.1 MB Notification: Performance of SimCode: time 1.442e-06/0.3458, allocations: 3.938 kB / 410.9 MB, free: 11.84 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04469/0.3905, allocations: 23.87 MB / 434.7 MB, free: 4.398 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002725/0.3908, allocations: 229.7 kB / 435 MB, free: 4.141 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.378/2.769, allocations: 0 / 435 MB, free: 4.141 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches