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.00121/0.00121, allocations: 108.8 kB / 17.28 MB, free: 6.176 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.001217/0.001217, allocations: 189.3 kB / 18.2 MB, free: 5.254 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.413/1.413, allocations: 205.1 MB / 224.1 MB, free: 12.44 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.001249/0.001249, allocations: 48.14 kB / 280.3 MB, free: 3.398 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09165/0.09291, allocations: 46.62 MB / 326.9 MB, free: 4.707 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.006778/0.09974, allocations: 5.035 MB / 331.9 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002807/0.1026, allocations: 1.337 MB / 333.2 MB, free: 14.3 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007798/0.1034, allocations: 11.94 kB / 333.3 MB, free: 14.29 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006842/0.1042, allocations: 127.1 kB / 333.4 MB, free: 14.16 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001137/0.1053, allocations: 289.7 kB / 333.7 MB, free: 13.88 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006258/0.106, allocations: 199.8 kB / 333.9 MB, free: 13.68 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001665/0.1076, allocations: 1.18 MB / 335 MB, free: 12.49 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005326/0.1082, allocations: 318 kB / 335.3 MB, free: 12.17 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006961/0.1089, allocations: 454.4 kB / 335.8 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007107/0.1096, allocations: 0.4979 MB / 336.3 MB, free: 11.23 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002402/0.1099, allocations: 104 kB / 336.4 MB, free: 11.12 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002839/0.1102, allocations: 112 kB / 336.5 MB, free: 11.02 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002261/0.1104, allocations: 223.2 kB / 336.7 MB, free: 10.8 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007066/0.1111, allocations: 0.5211 MB / 337.2 MB, free: 10.27 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001227/0.1124, allocations: 1.187 MB / 338.4 MB, free: 9.082 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.1124, allocations: 0 / 338.4 MB, free: 9.082 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1124, allocations: 0 / 338.4 MB, free: 9.082 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.118e-05/0.1124, allocations: 0 / 338.4 MB, free: 9.082 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.002744/0.1152, allocations: 1.348 MB / 339.8 MB, free: 7.66 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.1152, allocations: 12.03 kB / 339.8 MB, free: 7.648 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000202/0.1155, allocations: 119.8 kB / 339.9 MB, free: 7.523 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002269/0.1157, allocations: 107.7 kB / 340 MB, free: 7.418 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001198/0.1169, allocations: 0.5832 MB / 340.6 MB, free: 6.797 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003249/0.1172, allocations: 174.9 kB / 340.8 MB, free: 6.605 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001093/0.1174, allocations: 59.94 kB / 340.8 MB, free: 6.547 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001525/0.1189, allocations: 0.8783 MB / 341.7 MB, free: 5.566 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.948e-05/0.1189, allocations: 0 / 341.7 MB, free: 5.566 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.129e-05/0.119, allocations: 28 kB / 341.7 MB, free: 5.539 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.474e-05/0.119, allocations: 15.94 kB / 341.7 MB, free: 5.523 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001465/0.1205, allocations: 0.6336 MB / 342.4 MB, free: 4.887 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.003533/0.124, allocations: 2.1 MB / 344.5 MB, free: 2.684 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001335/0.1254, allocations: 0.8662 MB / 345.3 MB, free: 1.758 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000792/0.1262, allocations: 406.6 kB / 345.7 MB, free: 1.359 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.809e-05/0.1263, allocations: 8.656 kB / 345.7 MB, free: 1.352 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.281e-05/0.1263, allocations: 51.22 kB / 345.8 MB, free: 1.293 MB / 286.1 MB Notification: Performance of pre-optimization done (n=73): time 2.856e-06/0.1263, allocations: 4 kB / 345.8 MB, free: 1.289 MB / 286.1 MB Notification: Performance of matching and sorting (n=73): time 0.005202/0.1315, allocations: 1.832 MB / 347.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003812/0.1319, allocations: 0.8234 MB / 348.5 MB, free: 14.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008618/0.1328, allocations: 0.637 MB / 349.1 MB, free: 13.7 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.634e-05/0.1329, allocations: 45.7 kB / 349.1 MB, free: 13.64 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002887/0.1332, allocations: 341 kB / 349.5 MB, free: 13.3 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002252/0.1334, allocations: 252.2 kB / 349.7 MB, free: 13.06 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002446/0.1337, allocations: 150.6 kB / 349.9 MB, free: 12.9 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.1338, allocations: 386.8 kB / 350.2 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006908/0.1345, allocations: 281.8 kB / 350.5 MB, free: 12.24 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008752/0.1354, allocations: 0.5702 MB / 351.1 MB, free: 11.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001357/0.1368, allocations: 0.7089 MB / 351.8 MB, free: 10.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.1368, allocations: 0 / 351.8 MB, free: 10.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002717/0.1395, allocations: 1.114 MB / 352.9 MB, free: 9.684 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.531e-05/0.1396, allocations: 89.09 kB / 353 MB, free: 9.578 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.1396, allocations: 4 kB / 353 MB, free: 9.574 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006982/0.1403, allocations: 235.3 kB / 353.2 MB, free: 9.332 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006559/0.141, allocations: 143.8 kB / 353.4 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007719/0.1487, allocations: 6.939 MB / 360.3 MB, free: 1.688 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001002/0.1498, allocations: 107.4 kB / 360.4 MB, free: 1.582 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001027/0.1499, allocations: 20 kB / 360.4 MB, free: 1.562 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.000443/0.1503, allocations: 217.7 kB / 360.6 MB, free: 1.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002242/0.1506, allocations: 95 kB / 360.7 MB, free: 1.246 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001976/0.1508, allocations: 91.33 kB / 360.8 MB, free: 1.152 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.194e-06/0.1508, allocations: 8 kB / 360.8 MB, free: 1.145 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.1508, allocations: 0 / 360.8 MB, free: 1.145 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002577/0.1534, allocations: 1.256 MB / 362.1 MB, free: 15.77 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00391/0.1573, allocations: 1.96 MB / 364.1 MB, free: 13.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.1573, allocations: 0 / 364.1 MB, free: 13.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007182/0.1581, allocations: 151.8 kB / 364.2 MB, free: 13.6 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005625/0.1586, allocations: 202.7 kB / 364.4 MB, free: 13.39 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.714e-05/0.1587, allocations: 19.92 kB / 364.4 MB, free: 13.37 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006216/0.1649, allocations: 5.345 MB / 369.8 MB, free: 7.605 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1649, allocations: 4.031 kB / 369.8 MB, free: 7.602 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003364/0.1683, allocations: 1.425 MB / 371.2 MB, free: 6.152 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004978/0.1688, allocations: 240 kB / 371.4 MB, free: 5.898 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002066/0.1691, allocations: 20 kB / 371.4 MB, free: 5.879 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008235/0.1699, allocations: 71.81 kB / 371.5 MB, free: 5.809 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002017/0.1701, allocations: 56.77 kB / 371.6 MB, free: 5.754 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.423e-05/0.1702, allocations: 23.92 kB / 371.6 MB, free: 5.73 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005973/0.1708, allocations: 463 kB / 372 MB, free: 5.285 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1708, allocations: 4 kB / 372.1 MB, free: 5.281 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009892/0.1718, allocations: 279.7 kB / 372.3 MB, free: 5.008 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.00377/0.1755, allocations: 2.009 MB / 374.3 MB, free: 2.957 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00257/0.1781, allocations: 1.402 MB / 375.7 MB, free: 1.469 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.1782, allocations: 4 kB / 375.7 MB, free: 1.465 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001417/0.1796, allocations: 0.7848 MB / 376.5 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001149/0.1807, allocations: 235.1 kB / 376.8 MB, free: 420 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1664/0.3472, allocations: 8.316 MB / 385.1 MB, free: 50.12 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005753/0.3478, allocations: 0.9483 MB / 386 MB, free: 49.41 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000556/0.3484, allocations: 103.5 kB / 386.1 MB, free: 49.39 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004062/0.3488, allocations: 301.9 kB / 386.4 MB, free: 49.18 MB / 318.1 MB Notification: Performance of SimCode: time 8.41e-07/0.3488, allocations: 1.156 kB / 386.4 MB, free: 49.18 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05008/0.3989, allocations: 25.14 MB / 411.6 MB, free: 30.76 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001527/0.3991, allocations: 229.9 kB / 411.8 MB, free: 30.5 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.561/2.96, allocations: 0 / 411.8 MB, free: 30.5 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