Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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.PumpAndValve,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",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.0007812/0.0007811, allocations: 86.14 kB / 16.31 MB, free: 6.449 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.0008745/0.0008745, allocations: 185.6 kB / 17.21 MB, free: 6.32 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.451/1.451, allocations: 223.3 MB / 241.2 MB, free: 5.367 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002619/0.000262, allocations: 6.188 kB / 300.9 MB, free: 5.973 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.109, allocations: 50.43 MB / 351.3 MB, free: 11.55 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.00428/0.1133, allocations: 3.792 MB / 355.1 MB, free: 7.742 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002174/0.1155, allocations: 1.099 MB / 356.2 MB, free: 6.637 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002616/0.1158, allocations: 8 kB / 356.2 MB, free: 6.629 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002852/0.1161, allocations: 87.3 kB / 356.3 MB, free: 6.543 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005254/0.1166, allocations: 234.1 kB / 356.5 MB, free: 6.312 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003763/0.117, allocations: 147.8 kB / 356.7 MB, free: 6.168 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008438/0.1179, allocations: 0.8186 MB / 357.5 MB, free: 5.348 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003192/0.1182, allocations: 208.7 kB / 357.7 MB, free: 5.129 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004301/0.1186, allocations: 318.8 kB / 358 MB, free: 4.816 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003796/0.119, allocations: 350.6 kB / 358.4 MB, free: 4.473 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.652e-05/0.1191, allocations: 52 kB / 358.4 MB, free: 4.422 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001131/0.1192, allocations: 48 kB / 358.5 MB, free: 4.375 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001213/0.1194, allocations: 143.4 kB / 358.6 MB, free: 4.234 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001539/0.1195, allocations: 165.3 kB / 358.8 MB, free: 4.066 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000581/0.1201, allocations: 0.67 MB / 359.4 MB, free: 3.395 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.1201, allocations: 0 / 359.4 MB, free: 3.395 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1201, allocations: 0 / 359.4 MB, free: 3.395 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.337e-05/0.1201, allocations: 4 kB / 359.4 MB, free: 3.391 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: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.001817/0.122, allocations: 1 MB / 360.4 MB, free: 2.328 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.122, allocations: 12.03 kB / 360.5 MB, free: 2.316 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001462/0.1222, allocations: 99.42 kB / 360.6 MB, free: 2.211 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001305/0.1223, allocations: 87.06 kB / 360.6 MB, free: 2.125 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007325/0.1231, allocations: 455.8 kB / 361.1 MB, free: 1.637 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001467/0.1232, allocations: 100.4 kB / 361.2 MB, free: 1.523 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.501e-05/0.1233, allocations: 51.94 kB / 361.2 MB, free: 1.473 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001135/0.1244, allocations: 0.6678 MB / 361.9 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.578e-05/0.1245, allocations: 0 / 361.9 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.521e-05/0.1245, allocations: 24 kB / 361.9 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.183e-05/0.1245, allocations: 12 kB / 361.9 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001083/0.1256, allocations: 483.6 kB / 362.4 MB, free: 228 kB / 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.003187/0.1288, allocations: 1.994 MB / 364.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001807/0.1307, allocations: 0.7064 MB / 365.1 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005499/0.1312, allocations: 284.3 kB / 365.4 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.372e-05/0.1313, allocations: 16.36 kB / 365.4 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.039e-05/0.1313, allocations: 43 kB / 365.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.134e-06/0.1313, allocations: 0 / 365.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.004679/0.136, allocations: 1.597 MB / 367 MB, free: 11.36 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000303/0.1363, allocations: 0.5644 MB / 367.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006884/0.137, allocations: 0.5304 MB / 368.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.723e-05/0.1371, allocations: 37.7 kB / 368.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000293/0.1374, allocations: 292.6 kB / 368.5 MB, free: 9.781 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001612/0.1376, allocations: 189.2 kB / 368.6 MB, free: 9.594 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.755e-05/0.1376, allocations: 12 kB / 368.7 MB, free: 9.582 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001856/0.1378, allocations: 366.8 kB / 369 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004919/0.1383, allocations: 209 kB / 369.2 MB, free: 9.012 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007314/0.139, allocations: 428.5 kB / 369.6 MB, free: 8.516 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005935/0.1397, allocations: 276 kB / 369.9 MB, free: 8.246 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.1397, allocations: 0 / 369.9 MB, free: 8.246 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002237/0.1419, allocations: 0.8537 MB / 370.8 MB, free: 7.367 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.285e-05/0.142, allocations: 37.69 kB / 370.8 MB, free: 7.324 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-06/0.142, allocations: 0 / 370.8 MB, free: 7.324 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009577/0.1429, allocations: 230.3 kB / 371 MB, free: 7.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006885/0.1436, allocations: 139.8 kB / 371.2 MB, free: 6.953 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007628/0.1513, allocations: 5.231 MB / 376.4 MB, free: 1.324 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007619/0.1521, allocations: 87.62 kB / 376.5 MB, free: 1.238 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.063e-05/0.1521, allocations: 16 kB / 376.5 MB, free: 1.223 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {5 2,1 1,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0003196/0.1525, allocations: 201.9 kB / 376.7 MB, free: 1.016 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001109/0.1526, allocations: 67.25 kB / 376.7 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002313/0.1549, allocations: 0.8164 MB / 377.6 MB, free: 112 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.1549, allocations: 8 kB / 377.6 MB, free: 104 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.1549, allocations: 0 / 377.6 MB, free: 104 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002237/0.1572, allocations: 1.086 MB / 378.7 MB, free: 14.9 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003401/0.1606, allocations: 1.557 MB / 380.2 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.1606, allocations: 0 / 380.2 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007551/0.1614, allocations: 143.8 kB / 380.4 MB, free: 13.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008695/0.1623, allocations: 181.5 kB / 380.5 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.934e-05/0.1623, allocations: 15.98 kB / 380.5 MB, free: 12.95 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004991/0.1673, allocations: 3.533 MB / 384.1 MB, free: 9.145 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.1673, allocations: 128 / 384.1 MB, free: 9.145 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002859/0.1702, allocations: 1.128 MB / 385.2 MB, free: 7.996 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003827/0.1706, allocations: 208.1 kB / 385.4 MB, free: 7.773 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.601e-05/0.1707, allocations: 16 kB / 385.4 MB, free: 7.758 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004572/0.1711, allocations: 47.86 kB / 385.5 MB, free: 7.711 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/0.1713, allocations: 44.44 kB / 385.5 MB, free: 7.668 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.95e-05/0.1713, allocations: 15.98 kB / 385.5 MB, free: 7.652 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004614/0.1718, allocations: 386.8 kB / 385.9 MB, free: 7.277 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1718, allocations: 0 / 385.9 MB, free: 7.277 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007554/0.1726, allocations: 219.8 kB / 386.1 MB, free: 7.062 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (pipe.T,heatCapacitor.T,speed.phi) * 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 (44): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.003123/0.1757, allocations: 1.689 MB / 387.8 MB, free: 5.336 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002365/0.1781, allocations: 1.065 MB / 388.9 MB, free: 4.219 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.1781, allocations: 4 kB / 388.9 MB, free: 4.215 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001/0.1791, allocations: 0.5474 MB / 389.4 MB, free: 3.641 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008857/0.18, allocations: 166.2 kB / 389.6 MB, free: 3.473 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007531/0.1875, allocations: 4.194 MB / 393.8 MB, free: 15.21 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004915/0.1881, allocations: 0.8918 MB / 394.7 MB, free: 14.29 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004043/0.1885, allocations: 85.11 kB / 394.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003049/0.1888, allocations: 231.4 kB / 395 MB, free: 13.98 MB / 334.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1888, allocations: 0 / 395 MB, free: 13.98 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03825/0.227, allocations: 18.06 MB / 413.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002386/0.2273, allocations: 218.4 kB / 413.3 MB, free: 12.06 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.474/2.701, allocations: 0 / 413.3 MB, free: 12.06 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat does not exist to compare? outputFormat=mat