Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002541/0.00254, allocations: 184.3 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.282/2.282, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001141/0.00114, allocations: 103.3 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003898/0.0003899, allocations: 8 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3261/0.3265, allocations: 47.57 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.005185/0.3317, allocations: 3.481 MB / 378.1 MB, free: 42.73 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002839/0.3346, allocations: 1.171 MB / 379.3 MB, free: 41.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004917/0.3351, allocations: 11.09 kB / 379.3 MB, free: 41.76 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003321/0.3355, allocations: 89.81 kB / 379.4 MB, free: 41.69 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009296/0.3364, allocations: 279.8 kB / 379.7 MB, free: 41.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005795/0.337, allocations: 143.6 kB / 379.8 MB, free: 41.33 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001421/0.3385, allocations: 0.6391 MB / 380.4 MB, free: 40.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004641/0.339, allocations: 205.2 kB / 380.6 MB, free: 40.81 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007332/0.3397, allocations: 316.5 kB / 380.9 MB, free: 40.64 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005364/0.3403, allocations: 337.2 kB / 381.3 MB, free: 40.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001347/0.3404, allocations: 44.09 kB / 381.3 MB, free: 40.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001986/0.3406, allocations: 44.94 kB / 381.4 MB, free: 40.43 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001404/0.3408, allocations: 128 kB / 381.5 MB, free: 40.32 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001965/0.341, allocations: 166.1 kB / 381.6 MB, free: 40.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007768/0.3418, allocations: 0.6409 MB / 382.3 MB, free: 39.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.3418, allocations: 0 / 382.3 MB, free: 39.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.315e-06/0.3418, allocations: 0 / 382.3 MB, free: 39.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.303e-05/0.3418, allocations: 1.469 kB / 382.3 MB, free: 39.75 MB / 298.7 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.002763/0.3446, allocations: 0.9863 MB / 383.3 MB, free: 38.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/0.3447, allocations: 12.91 kB / 383.3 MB, free: 38.95 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002346/0.3449, allocations: 93.67 kB / 383.4 MB, free: 38.86 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002158/0.3451, allocations: 85.41 kB / 383.5 MB, free: 38.82 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008819/0.346, allocations: 427.2 kB / 383.9 MB, free: 38.45 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001935/0.3462, allocations: 103.5 kB / 384 MB, free: 38.36 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001188/0.3464, allocations: 55.64 kB / 384 MB, free: 38.33 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002181/0.3486, allocations: 0.6545 MB / 384.7 MB, free: 37.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.209e-05/0.3487, allocations: 3.984 kB / 384.7 MB, free: 37.84 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001299/0.3488, allocations: 22.56 kB / 384.7 MB, free: 37.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.751e-05/0.3489, allocations: 11.09 kB / 384.7 MB, free: 37.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003071/0.3519, allocations: 487.2 kB / 385.2 MB, free: 37.61 MB / 298.7 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.00753/0.3595, allocations: 1.958 MB / 387.2 MB, free: 35.94 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005547/0.3651, allocations: 0.7395 MB / 387.9 MB, free: 35.18 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001437/0.3653, allocations: 16.42 kB / 387.9 MB, free: 35.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.341e-05/0.3654, allocations: 46.98 kB / 388 MB, free: 35.11 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 5.73e-06/0.3654, allocations: 0 / 388 MB, free: 35.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=54): time 0.01398/0.3794, allocations: 1.591 MB / 389.5 MB, free: 33.45 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002002/0.3797, allocations: 0.5643 MB / 390.1 MB, free: 32.75 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001163/0.3809, allocations: 0.499 MB / 390.6 MB, free: 32.24 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000178/0.3811, allocations: 37.7 kB / 390.6 MB, free: 32.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002891/0.3814, allocations: 315.2 kB / 391 MB, free: 31.89 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002749/0.3817, allocations: 189.2 kB / 391.1 MB, free: 31.7 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.582e-05/0.3818, allocations: 12 kB / 391.2 MB, free: 31.69 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.385e-05/0.3819, allocations: 330.8 kB / 391.5 MB, free: 31.36 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001335/0.3833, allocations: 209 kB / 391.7 MB, free: 31.15 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001739/0.385, allocations: 425.4 kB / 392.1 MB, free: 30.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001468/0.3865, allocations: 280 kB / 392.4 MB, free: 30.38 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/0.3866, allocations: 0 / 392.4 MB, free: 30.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.006006/0.3926, allocations: 0.815 MB / 393.2 MB, free: 29.54 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.585e-05/0.3927, allocations: 29.7 kB / 393.2 MB, free: 29.51 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.83e-05/0.3928, allocations: 4 kB / 393.2 MB, free: 29.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002619/0.3954, allocations: 238.3 kB / 393.5 MB, free: 29.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00215/0.3976, allocations: 131.8 kB / 393.6 MB, free: 29.13 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01668/0.4143, allocations: 5.304 MB / 398.9 MB, free: 23.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001992/0.4163, allocations: 91.73 kB / 399 MB, free: 23.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001158/0.4165, allocations: 16 kB / 399 MB, free: 23.33 MB / 298.7 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.000576/0.4171, allocations: 198 kB / 399.2 MB, free: 23.12 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002801/0.4174, allocations: 75.11 kB / 399.3 MB, free: 23.05 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005982/0.4234, allocations: 0.8202 MB / 400.1 MB, free: 22.21 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.409e-05/0.4235, allocations: 8 kB / 400.1 MB, free: 22.2 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.892e-06/0.4235, allocations: 0 / 400.1 MB, free: 22.2 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005697/0.4292, allocations: 1.086 MB / 401.2 MB, free: 21 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007961/0.4372, allocations: 1.533 MB / 402.7 MB, free: 19.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.795e-06/0.4372, allocations: 0 / 402.7 MB, free: 19.4 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002328/0.4396, allocations: 127.8 kB / 402.8 MB, free: 19.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002444/0.4421, allocations: 185.7 kB / 403 MB, free: 19.09 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001587/0.4423, allocations: 15.98 kB / 403 MB, free: 19.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01138/0.4537, allocations: 3.587 MB / 406.6 MB, free: 15.22 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.061e-06/0.4538, allocations: 8.109 kB / 406.6 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007415/0.4612, allocations: 1.124 MB / 407.7 MB, free: 14.07 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006512/0.4619, allocations: 192.2 kB / 407.9 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002121/0.4622, allocations: 16 kB / 407.9 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001456/0.4637, allocations: 43.91 kB / 408 MB, free: 13.8 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002679/0.464, allocations: 56.38 kB / 408 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.595e-05/0.4641, allocations: 16 kB / 408.1 MB, free: 13.73 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008053/0.4649, allocations: 354.8 kB / 408.4 MB, free: 13.39 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.22e-07/0.4649, allocations: 0 / 408.4 MB, free: 13.39 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001533/0.4665, allocations: 219.7 kB / 408.6 MB, free: 13.17 MB / 298.7 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.007749/0.4742, allocations: 1.681 MB / 410.3 MB, free: 11.45 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.005474/0.4798, allocations: 1.066 MB / 411.4 MB, free: 10.33 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.093e-05/0.4798, allocations: 4 kB / 411.4 MB, free: 10.33 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002896/0.4827, allocations: 0.5474 MB / 411.9 MB, free: 9.758 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001837/0.4846, allocations: 165.9 kB / 412.1 MB, free: 9.598 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005767/0.4904, allocations: 2.609 MB / 414.7 MB, free: 6.93 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005405/0.491, allocations: 0.907 MB / 415.6 MB, free: 5.992 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007103/0.4918, allocations: 223.4 kB / 415.8 MB, free: 5.773 MB / 298.7 MB Notification: Performance of SimCode: time 1.292e-06/0.4918, allocations: 3.938 kB / 415.8 MB, free: 5.77 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.959/3.451, allocations: 16.8 MB / 432.6 MB, free: 4.973 MB / 314.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat does not exist to compare? outputFormat=mat