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.0007296/0.0007298, allocations: 97.02 kB / 17.3 MB, free: 6.391 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.0008286/0.0008289, allocations: 176.5 kB / 18.21 MB, free: 5.551 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.375/1.375, allocations: 205.4 MB / 224.4 MB, free: 13.08 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.0004434/0.0004434, allocations: 8 kB / 281.5 MB, free: 3.328 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08988/0.09033, allocations: 47.58 MB / 329.1 MB, free: 3.672 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.005081/0.09545, allocations: 4.634 MB / 333.7 MB, free: 15.01 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002791/0.09829, allocations: 1.283 MB / 335 MB, free: 13.72 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000416/0.09874, allocations: 11.94 kB / 335 MB, free: 13.71 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004197/0.09917, allocations: 127.1 kB / 335.1 MB, free: 13.58 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006581/0.09984, allocations: 285.7 kB / 335.4 MB, free: 13.3 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004146/0.1003, allocations: 199.8 kB / 335.6 MB, free: 13.11 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001071/0.1013, allocations: 1.117 MB / 336.7 MB, free: 11.98 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003851/0.1017, allocations: 286 kB / 337 MB, free: 11.69 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004306/0.1022, allocations: 402.4 kB / 337.4 MB, free: 11.29 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005331/0.1027, allocations: 473.9 kB / 337.8 MB, free: 10.83 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001178/0.1028, allocations: 68 kB / 337.9 MB, free: 10.76 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001289/0.103, allocations: 64 kB / 338 MB, free: 10.7 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001631/0.1032, allocations: 187.2 kB / 338.1 MB, free: 10.52 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004682/0.1036, allocations: 0.4993 MB / 338.6 MB, free: 10.01 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009396/0.1046, allocations: 1.129 MB / 339.8 MB, free: 8.875 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1046, allocations: 0 / 339.8 MB, free: 8.875 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.1046, allocations: 0 / 339.8 MB, free: 8.875 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.613e-05/0.1046, allocations: 4 kB / 339.8 MB, free: 8.871 MB / 286.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.002/0.1066, allocations: 1.205 MB / 341 MB, free: 7.594 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/0.1067, allocations: 12.03 kB / 341 MB, free: 7.582 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001665/0.1069, allocations: 115.9 kB / 341.1 MB, free: 7.461 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001616/0.107, allocations: 111.7 kB / 341.2 MB, free: 7.352 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008108/0.1078, allocations: 0.5948 MB / 341.8 MB, free: 6.719 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002992/0.1082, allocations: 178.9 kB / 342 MB, free: 6.523 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.54e-05/0.1083, allocations: 59.94 kB / 342 MB, free: 6.465 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001439/0.1097, allocations: 0.8939 MB / 342.9 MB, free: 5.469 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/0.1097, allocations: 3.938 kB / 342.9 MB, free: 5.465 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.637e-05/0.1098, allocations: 31.98 kB / 343 MB, free: 5.434 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.267e-05/0.1098, allocations: 16 kB / 343 MB, free: 5.418 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001446/0.1113, allocations: 0.6766 MB / 343.7 MB, free: 4.738 MB / 286.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.003023/0.1143, allocations: 2.104 MB / 345.8 MB, free: 2.531 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001386/0.1157, allocations: 0.8936 MB / 346.7 MB, free: 1.578 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008132/0.1165, allocations: 426.5 kB / 347.1 MB, free: 1.16 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.083e-05/0.1166, allocations: 12.64 kB / 347.1 MB, free: 1.148 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.805e-05/0.1166, allocations: 51.2 kB / 347.1 MB, free: 1.09 MB / 286.1 MB Notification: Performance of pre-optimization done (n=73): time 2.024e-06/0.1166, allocations: 3.938 kB / 347.1 MB, free: 1.086 MB / 286.1 MB Notification: Performance of matching and sorting (n=73): time 0.00509/0.1217, allocations: 2 MB / 349.1 MB, free: 14.99 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003147/0.1221, allocations: 0.8234 MB / 350 MB, free: 13.97 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006928/0.1228, allocations: 0.6371 MB / 350.6 MB, free: 13.33 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.215e-05/0.1228, allocations: 45.7 kB / 350.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002398/0.1231, allocations: 344.9 kB / 351 MB, free: 12.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001778/0.1233, allocations: 252.3 kB / 351.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.752e-05/0.1234, allocations: 57.69 kB / 351.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.1235, allocations: 382.8 kB / 351.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006792/0.1242, allocations: 305.8 kB / 352 MB, free: 11.94 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009075/0.1251, allocations: 0.5858 MB / 352.5 MB, free: 11.26 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001407/0.1265, allocations: 0.7403 MB / 353.3 MB, free: 10.49 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.1266, allocations: 4 kB / 353.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002659/0.1292, allocations: 1.2 MB / 354.5 MB, free: 9.246 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.069e-05/0.1293, allocations: 89.09 kB / 354.6 MB, free: 9.141 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.1293, allocations: 0 / 354.6 MB, free: 9.141 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006827/0.13, allocations: 251.2 kB / 354.8 MB, free: 8.883 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006234/0.1306, allocations: 147.8 kB / 355 MB, free: 8.738 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007301/0.1379, allocations: 6.511 MB / 361.5 MB, free: 1.688 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009592/0.1389, allocations: 123.5 kB / 361.6 MB, free: 1.566 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.353e-05/0.139, allocations: 24 kB / 361.6 MB, free: 1.543 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.0004617/0.1395, allocations: 221.7 kB / 361.8 MB, free: 1.316 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002166/0.1397, allocations: 94.94 kB / 361.9 MB, free: 1.223 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001985/0.1399, allocations: 87.34 kB / 362 MB, free: 1.133 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.14, allocations: 8 kB / 362 MB, free: 1.125 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.14, allocations: 192 / 362 MB, free: 1.125 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002589/0.1426, allocations: 1.346 MB / 363.4 MB, free: 15.66 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003973/0.1465, allocations: 2.035 MB / 365.4 MB, free: 13.56 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.1466, allocations: 0 / 365.4 MB, free: 13.56 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006699/0.1472, allocations: 147.8 kB / 365.5 MB, free: 13.42 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005395/0.1478, allocations: 226.4 kB / 365.8 MB, free: 13.19 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.832e-05/0.1479, allocations: 15.98 kB / 365.8 MB, free: 13.17 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006064/0.1539, allocations: 5.055 MB / 370.8 MB, free: 7.715 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.1539, allocations: 0 / 370.8 MB, free: 7.715 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003532/0.1575, allocations: 1.531 MB / 372.4 MB, free: 6.16 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005016/0.158, allocations: 232 kB / 372.6 MB, free: 5.914 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001901/0.1582, allocations: 23.94 kB / 372.6 MB, free: 5.891 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007489/0.159, allocations: 75.94 kB / 372.7 MB, free: 5.816 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001833/0.1592, allocations: 64.56 kB / 372.8 MB, free: 5.754 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.12e-05/0.1592, allocations: 19.98 kB / 372.8 MB, free: 5.734 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006701/0.1599, allocations: 455.1 kB / 373.2 MB, free: 5.297 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1599, allocations: 0 / 373.2 MB, free: 5.297 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001165/0.1611, allocations: 287.6 kB / 373.5 MB, free: 5.016 MB / 318.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.003871/0.1649, allocations: 2.107 MB / 375.6 MB, free: 2.867 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002627/0.1676, allocations: 1.395 MB / 377 MB, free: 1.387 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.728e-06/0.1676, allocations: 8.125 kB / 377 MB, free: 1.379 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00149/0.1691, allocations: 0.8198 MB / 377.8 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001308/0.1704, allocations: 222.9 kB / 378 MB, free: 308 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.163/0.3334, allocations: 8.613 MB / 386.7 MB, free: 49.59 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004951/0.3339, allocations: 0.9436 MB / 387.6 MB, free: 48.89 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004882/0.3344, allocations: 102.7 kB / 387.7 MB, free: 48.86 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003639/0.3348, allocations: 295.4 kB / 388 MB, free: 48.65 MB / 318.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3348, allocations: 1.469 kB / 388 MB, free: 48.65 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03399/0.3688, allocations: 23.87 MB / 411.9 MB, free: 31.36 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001759/0.369, allocations: 229.2 kB / 412.1 MB, free: 31.1 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.518/2.888, allocations: 0 / 412.1 MB, free: 31.1 MB / 318.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches