Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 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.PumpAndValve,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_3_2_3_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.0008244/0.0008243, allocations: 96.02 kB / 16.95 MB, free: 6.453 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.001173/0.001173, allocations: 182.7 kB / 17.84 MB, free: 6.008 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.469/1.469, allocations: 205.4 MB / 224 MB, free: 13.15 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.0004278/0.0004281, allocations: 15.98 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09213/0.09257, allocations: 47.57 MB / 328.4 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.004861/0.09748, allocations: 3.802 MB / 332.2 MB, free: 164 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002637/0.1001, allocations: 1.131 MB / 333.4 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006511/0.1008, allocations: 8 kB / 333.4 MB, free: 15.01 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004705/0.1013, allocations: 95.28 kB / 333.5 MB, free: 14.92 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009301/0.1023, allocations: 230.1 kB / 333.7 MB, free: 14.69 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005892/0.1029, allocations: 151.8 kB / 333.8 MB, free: 14.54 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001295/0.1042, allocations: 0.828 MB / 334.7 MB, free: 13.71 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004036/0.1046, allocations: 208.7 kB / 334.9 MB, free: 13.5 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005349/0.1051, allocations: 310.8 kB / 335.2 MB, free: 13.19 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004377/0.1056, allocations: 358.5 kB / 335.5 MB, free: 12.84 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001091/0.1057, allocations: 48 kB / 335.6 MB, free: 12.79 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001065/0.1058, allocations: 52 kB / 335.6 MB, free: 12.74 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000129/0.106, allocations: 143.4 kB / 335.8 MB, free: 12.6 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001549/0.1061, allocations: 165.3 kB / 335.9 MB, free: 12.43 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005741/0.1067, allocations: 0.666 MB / 336.6 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.1067, allocations: 0 / 336.6 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1067, allocations: 0 / 336.6 MB, free: 11.77 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.276e-06/0.1067, allocations: 4 kB / 336.6 MB, free: 11.76 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.00169/0.1084, allocations: 0.9964 MB / 337.6 MB, free: 10.7 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.1085, allocations: 12.03 kB / 337.6 MB, free: 10.69 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001403/0.1086, allocations: 95.42 kB / 337.7 MB, free: 10.59 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001267/0.1088, allocations: 83.06 kB / 337.8 MB, free: 10.51 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006106/0.1094, allocations: 467.7 kB / 338.2 MB, free: 10.01 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001301/0.1095, allocations: 100.4 kB / 338.3 MB, free: 9.895 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.546e-05/0.1096, allocations: 48 kB / 338.4 MB, free: 9.848 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001022/0.1106, allocations: 0.6678 MB / 339.1 MB, free: 9.109 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.606e-05/0.1107, allocations: 0 / 339.1 MB, free: 9.109 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.718e-05/0.1107, allocations: 24 kB / 339.1 MB, free: 9.086 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.348e-06/0.1107, allocations: 8 kB / 339.1 MB, free: 9.078 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009213/0.1116, allocations: 483.6 kB / 339.6 MB, free: 8.605 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.002559/0.1142, allocations: 1.99 MB / 341.5 MB, free: 6.488 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001639/0.1159, allocations: 0.7181 MB / 342.3 MB, free: 5.746 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005013/0.1164, allocations: 288.6 kB / 342.5 MB, free: 5.465 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.121e-05/0.1164, allocations: 8.422 kB / 342.6 MB, free: 5.457 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.021e-05/0.1165, allocations: 47 kB / 342.6 MB, free: 5.402 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 3.557e-06/0.1165, allocations: 3.984 kB / 342.6 MB, free: 5.398 MB / 286.1 MB Notification: Performance of matching and sorting (n=54): time 0.004237/0.1207, allocations: 1.589 MB / 344.2 MB, free: 3.734 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002278/0.121, allocations: 0.5721 MB / 344.8 MB, free: 3.027 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005409/0.1215, allocations: 0.5265 MB / 345.3 MB, free: 2.492 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.067e-05/0.1216, allocations: 37.7 kB / 345.3 MB, free: 2.449 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001896/0.1218, allocations: 284.7 kB / 345.6 MB, free: 2.168 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001362/0.1219, allocations: 197.2 kB / 345.8 MB, free: 1.973 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.788e-05/0.1219, allocations: 12 kB / 345.8 MB, free: 1.961 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.1221, allocations: 370.7 kB / 346.2 MB, free: 1.59 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004655/0.1226, allocations: 209 kB / 346.4 MB, free: 1.387 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006094/0.1232, allocations: 428.5 kB / 346.8 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004986/0.1237, allocations: 264 kB / 347.1 MB, free: 0.625 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.1237, allocations: 4 kB / 347.1 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002/0.1257, allocations: 0.8574 MB / 347.9 MB, free: 15.74 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.245e-05/0.1258, allocations: 37.69 kB / 348 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.1258, allocations: 4 kB / 348 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008679/0.1266, allocations: 222.4 kB / 348.2 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006125/0.1273, allocations: 143.8 kB / 348.3 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006299/0.1336, allocations: 5.227 MB / 353.5 MB, free: 9.703 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005176/0.1341, allocations: 91.62 kB / 353.6 MB, free: 9.613 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.256e-05/0.1342, allocations: 16 kB / 353.6 MB, free: 9.598 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.000248/0.1344, allocations: 194 kB / 353.8 MB, free: 9.398 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/0.1345, allocations: 71.2 kB / 353.9 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002/0.1365, allocations: 0.8203 MB / 354.7 MB, free: 8.484 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.1366, allocations: 8.125 kB / 354.7 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.1366, allocations: 4 kB / 354.7 MB, free: 8.473 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001902/0.1385, allocations: 1.089 MB / 355.8 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00271/0.1412, allocations: 1.549 MB / 357.4 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.1412, allocations: 0 / 357.4 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006425/0.1419, allocations: 139.8 kB / 357.5 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006995/0.1426, allocations: 181.6 kB / 357.7 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.564e-05/0.1426, allocations: 7.984 kB / 357.7 MB, free: 5.324 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004201/0.1468, allocations: 3.537 MB / 361.2 MB, free: 1.527 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.584e-06/0.1468, allocations: 8.078 kB / 361.2 MB, free: 1.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002382/0.1492, allocations: 1.128 MB / 362.4 MB, free: 372 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002301/0.1495, allocations: 200.2 kB / 362.6 MB, free: 152 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.734e-05/0.1496, allocations: 12 kB / 362.6 MB, free: 140 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004366/0.15, allocations: 52.14 kB / 362.6 MB, free: 88 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.155e-05/0.1501, allocations: 44.39 kB / 362.7 MB, free: 44 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.869e-05/0.1502, allocations: 27.92 kB / 362.7 MB, free: 16 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004148/0.1506, allocations: 378.9 kB / 363.1 MB, free: 15.64 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1506, allocations: 0 / 363.1 MB, free: 15.64 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006342/0.1512, allocations: 219.8 kB / 363.3 MB, free: 15.43 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.002666/0.1539, allocations: 1.685 MB / 365 MB, free: 13.71 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001962/0.1559, allocations: 1.069 MB / 366 MB, free: 12.59 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.1559, allocations: 4 kB / 366 MB, free: 12.59 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008593/0.1568, allocations: 0.5512 MB / 366.6 MB, free: 12.01 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007594/0.1575, allocations: 178.1 kB / 366.8 MB, free: 11.84 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006655/0.1642, allocations: 4.196 MB / 371 MB, free: 7.574 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003993/0.1646, allocations: 0.8918 MB / 371.9 MB, free: 6.652 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003337/0.1649, allocations: 81.11 kB / 371.9 MB, free: 6.574 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002884/0.1652, allocations: 231.4 kB / 372.2 MB, free: 6.348 MB / 318.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1652, allocations: 0 / 372.2 MB, free: 6.348 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2592/0.4245, allocations: 18.05 MB / 390.2 MB, free: 48.26 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001601/0.4247, allocations: 220.4 kB / 390.4 MB, free: 48.01 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.453/2.878, allocations: 1.375 kB / 390.4 MB, free: 48.01 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat does not exist to compare? outputFormat=mat