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.001373/0.001373, allocations: 95.22 kB / 16.3 MB, free: 6.457 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.0017/0.0017, allocations: 184.5 kB / 17.2 MB, free: 6.34 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.47/1.47, allocations: 223.2 MB / 241.1 MB, free: 5.445 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002932/0.0002932, allocations: 6.031 kB / 300.8 MB, free: 6.004 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1087, allocations: 50.43 MB / 351.2 MB, free: 11.65 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.003789/0.1125, allocations: 3.485 MB / 354.7 MB, free: 8.152 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001705/0.1143, allocations: 1.134 MB / 355.8 MB, free: 7.012 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003392/0.1146, allocations: 11.94 kB / 355.9 MB, free: 7 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002101/0.1148, allocations: 91.34 kB / 355.9 MB, free: 6.91 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004979/0.1153, allocations: 279.2 kB / 356.2 MB, free: 6.637 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000325/0.1157, allocations: 151.7 kB / 356.4 MB, free: 6.488 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007672/0.1164, allocations: 0.6278 MB / 357 MB, free: 5.859 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003976/0.1169, allocations: 196.7 kB / 357.2 MB, free: 5.652 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003499/0.1172, allocations: 314.9 kB / 357.5 MB, free: 5.344 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003604/0.1176, allocations: 338.6 kB / 357.8 MB, free: 5.012 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.655e-05/0.1177, allocations: 40 kB / 357.9 MB, free: 4.973 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.752e-05/0.1178, allocations: 48 kB / 357.9 MB, free: 4.926 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001154/0.1179, allocations: 127.5 kB / 358 MB, free: 4.801 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001298/0.118, allocations: 165.3 kB / 358.2 MB, free: 4.633 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005244/0.1186, allocations: 0.6388 MB / 358.8 MB, free: 3.992 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.1186, allocations: 0 / 358.8 MB, free: 3.992 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1186, allocations: 0 / 358.8 MB, free: 3.992 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.282e-05/0.1186, allocations: 0 / 358.8 MB, free: 3.992 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.001808/0.1204, allocations: 0.9924 MB / 359.8 MB, free: 2.938 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.1205, allocations: 12.03 kB / 359.8 MB, free: 2.926 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001396/0.1206, allocations: 95.42 kB / 359.9 MB, free: 2.824 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001382/0.1207, allocations: 87.06 kB / 360 MB, free: 2.738 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007293/0.1215, allocations: 431.8 kB / 360.4 MB, free: 2.273 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001376/0.1216, allocations: 96.39 kB / 360.5 MB, free: 2.164 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.308e-05/0.1217, allocations: 44 kB / 360.6 MB, free: 2.121 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001072/0.1228, allocations: 0.6755 MB / 361.2 MB, free: 1.375 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/0.1228, allocations: 3.938 kB / 361.3 MB, free: 1.371 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001047/0.1229, allocations: 20 kB / 361.3 MB, free: 1.352 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.374e-05/0.123, allocations: 8 kB / 361.3 MB, free: 1.344 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001053/0.124, allocations: 483.7 kB / 361.8 MB, free: 0.8672 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.003035/0.1271, allocations: 1.955 MB / 363.7 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002041/0.1291, allocations: 0.7415 MB / 364.4 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.215e-05/0.1292, allocations: 16.41 kB / 364.5 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.693e-05/0.1292, allocations: 47 kB / 364.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 1.914e-06/0.1293, allocations: 0 / 364.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.004983/0.1342, allocations: 1.586 MB / 366.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002398/0.1345, allocations: 0.5799 MB / 366.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000528/0.135, allocations: 499.1 kB / 367.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.011e-05/0.1351, allocations: 37.7 kB / 367.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002074/0.1353, allocations: 296.6 kB / 367.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001371/0.1354, allocations: 185.2 kB / 367.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.737e-05/0.1355, allocations: 12 kB / 367.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.1356, allocations: 366.8 kB / 368 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00056/0.1362, allocations: 213 kB / 368.2 MB, free: 9.969 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006387/0.1368, allocations: 424.5 kB / 368.7 MB, free: 9.477 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005351/0.1374, allocations: 272 kB / 368.9 MB, free: 9.211 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.1374, allocations: 0 / 368.9 MB, free: 9.211 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002277/0.1397, allocations: 0.8575 MB / 369.8 MB, free: 8.328 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.237e-05/0.1398, allocations: 33.7 kB / 369.8 MB, free: 8.289 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.1398, allocations: 0 / 369.8 MB, free: 8.289 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00107/0.1408, allocations: 234.3 kB / 370 MB, free: 8.051 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007053/0.1416, allocations: 135.8 kB / 370.2 MB, free: 7.918 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007934/0.1495, allocations: 5.305 MB / 375.5 MB, free: 2.219 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007455/0.1503, allocations: 91.64 kB / 375.6 MB, free: 2.129 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.192e-05/0.1503, allocations: 16 kB / 375.6 MB, free: 2.113 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.0003057/0.1506, allocations: 197.9 kB / 375.8 MB, free: 1.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002516/0.1509, allocations: 71.23 kB / 375.9 MB, free: 1.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002325/0.1532, allocations: 0.8164 MB / 376.7 MB, free: 1 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.97e-06/0.1532, allocations: 4 kB / 376.7 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.1533, allocations: 0 / 376.7 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002171/0.1554, allocations: 1.09 MB / 377.8 MB, free: 15.79 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003052/0.1585, allocations: 1.525 MB / 379.3 MB, free: 14.2 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.1585, allocations: 0 / 379.3 MB, free: 14.2 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007116/0.1592, allocations: 131.8 kB / 379.4 MB, free: 14.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008176/0.1601, allocations: 201.4 kB / 379.6 MB, free: 13.87 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.454e-05/0.1601, allocations: 7.984 kB / 379.6 MB, free: 13.86 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004952/0.1651, allocations: 3.589 MB / 383.2 MB, free: 10.01 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1651, allocations: 96 / 383.2 MB, free: 10.01 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002761/0.1679, allocations: 1.128 MB / 384.3 MB, free: 8.859 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003591/0.1682, allocations: 204.1 kB / 384.5 MB, free: 8.641 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.454e-05/0.1683, allocations: 16 kB / 384.6 MB, free: 8.625 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000478/0.1688, allocations: 39.97 kB / 384.6 MB, free: 8.586 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.1689, allocations: 44.48 kB / 384.6 MB, free: 8.543 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.165e-05/0.169, allocations: 16 kB / 384.7 MB, free: 8.527 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003885/0.1694, allocations: 354.8 kB / 385 MB, free: 8.184 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1694, allocations: 4 kB / 385 MB, free: 8.18 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007199/0.1701, allocations: 219.7 kB / 385.2 MB, free: 7.965 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.003087/0.1732, allocations: 1.689 MB / 386.9 MB, free: 6.238 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002316/0.1755, allocations: 1.065 MB / 388 MB, free: 5.121 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.1756, allocations: 4 kB / 388 MB, free: 5.117 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001068/0.1766, allocations: 0.5474 MB / 388.5 MB, free: 4.543 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006815/0.1773, allocations: 158.3 kB / 388.7 MB, free: 4.383 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002806/0.1801, allocations: 2.574 MB / 391.3 MB, free: 1.75 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005071/0.1807, allocations: 0.8992 MB / 392.2 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002906/0.181, allocations: 76.69 kB / 392.2 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000277/0.1813, allocations: 223.4 kB / 392.4 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1813, allocations: 0 / 392.4 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03541/0.2167, allocations: 17.16 MB / 409.6 MB, free: 15.74 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000182/0.2169, allocations: 225 kB / 409.8 MB, free: 15.49 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.322/2.539, allocations: 0 / 409.8 MB, free: 15.49 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