Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.IncompressibleFluidNetwork.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.Fluid.Examples.IncompressibleFluidNetwork,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_IncompressibleFluidNetwork",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.IncompressibleFluidNetwork,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_IncompressibleFluidNetwork",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.001481/0.001481, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.989/1.989, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001119/0.001119, allocations: 78.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.119e-05/3.137e-05, allocations: 0 / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09306/0.09312, allocations: 47.57 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9352/1.028, allocations: 280.5 MB / 0.6345 GB, free: 42.71 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002601/1.029, allocations: 74.47 kB / 0.6346 GB, free: 42.68 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.813/10.84, allocations: 1.679 GB / 2.313 GB, free: 0.625 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.174e-06/10.84, allocations: 0 / 2.313 GB, free: 0.625 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.001258/10.84, allocations: 199.8 kB / 2.314 GB, free: 440 kB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1492 * Number of variables: 1492 Notification: Performance of Generate backend data structure: time 0.05508/10.9, allocations: 10.34 MB / 2.324 GB, free: 6.012 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.639e-05/10.9, allocations: 8.031 kB / 2.324 GB, free: 6.004 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005154/10.9, allocations: 0.7736 MB / 2.324 GB, free: 5.219 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01602/10.92, allocations: 1.275 MB / 2.326 GB, free: 3.934 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.553/11.47, allocations: 6.304 MB / 2.332 GB, free: 23.08 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001074/11.47, allocations: 434.1 kB / 2.332 GB, free: 23.07 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00399/11.48, allocations: 0.5357 MB / 2.333 GB, free: 23.07 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03981/11.52, allocations: 9.312 MB / 2.342 GB, free: 21.62 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003151/11.52, allocations: 20.72 kB / 2.342 GB, free: 21.62 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003485/11.52, allocations: 248.3 kB / 2.342 GB, free: 21.62 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001324/11.52, allocations: 0.5914 MB / 2.343 GB, free: 21.61 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03129/11.55, allocations: 7.909 MB / 2.35 GB, free: 21.57 MB / 0.5261 GB Warning: The model contains alias variables with conflicting start and/or 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.09725/11.65, allocations: 34.94 MB / 2.385 GB, free: 23.07 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01947/11.67, allocations: 6.021 MB / 2.39 GB, free: 22.99 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01039/11.68, allocations: 3.618 MB / 2.394 GB, free: 22.96 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00988/11.69, allocations: 4.759 MB / 2.399 GB, free: 17.99 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001768/11.69, allocations: 95.89 kB / 2.399 GB, free: 17.95 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.01281/11.7, allocations: 1.685 MB / 2.4 GB, free: 17.8 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=500): time 3.172e-05/11.7, allocations: 0 / 2.4 GB, free: 17.8 MB / 0.5417 GB Notification: Performance of matching and sorting (n=632): time 0.2622/11.97, allocations: 43.12 MB / 2.442 GB, free: 15.72 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001568/11.97, allocations: 169.1 kB / 2.443 GB, free: 15.59 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01239/11.98, allocations: 4.209 MB / 2.447 GB, free: 15.24 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.002604/11.98, allocations: 145 kB / 2.447 GB, free: 15.21 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.003453/11.99, allocations: 2.616 MB / 2.449 GB, free: 14.38 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.004485/11.99, allocations: 2.175 MB / 2.452 GB, free: 13.11 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002401/11.99, allocations: 146.6 kB / 2.452 GB, free: 13.03 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0009345/11.99, allocations: 0.592 MB / 2.452 GB, free: 12.59 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01206/12.01, allocations: 3.81 MB / 2.456 GB, free: 11.24 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01435/12.02, allocations: 5.432 MB / 2.461 GB, free: 8.125 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01481/12.03, allocations: 4.763 MB / 2.466 GB, free: 6.488 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.061e-05/12.03, allocations: 11.78 kB / 2.466 GB, free: 6.488 MB / 0.5417 GB Notification: Performance of matching and sorting (n=911) (initialization): time 0.04582/12.08, allocations: 11.86 MB / 2.477 GB, free: 2.516 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.008718/12.09, allocations: 16.82 MB / 2.494 GB, free: 0.6836 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002109/12.09, allocations: 46.97 kB / 2.494 GB, free: 0.6836 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05531/12.14, allocations: 5.175 MB / 2.499 GB, free: 15.79 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01205/12.16, allocations: 1.355 MB / 2.5 GB, free: 15.74 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02436/12.18, allocations: 17.37 MB / 2.517 GB, free: 1.723 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01539/12.2, allocations: 0.5044 MB / 2.518 GB, free: 1.578 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003174/12.2, allocations: 414.7 kB / 2.518 GB, free: 1.52 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/12.2, allocations: 3.812 kB / 2.518 GB, free: 1.52 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04991/12.25, allocations: 11.75 MB / 2.53 GB, free: 12.33 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001545/12.25, allocations: 44 kB / 2.53 GB, free: 12.29 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01756/12.27, allocations: 2.947 MB / 2.533 GB, free: 10.02 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01301/12.28, allocations: 1.379 MB / 2.534 GB, free: 8.848 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5576/12.84, allocations: 21.73 MB / 2.555 GB, free: 70.99 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.011/12.85, allocations: 493 kB / 2.556 GB, free: 70.99 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003387/12.85, allocations: 409.8 kB / 2.556 GB, free: 70.99 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 193 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (751): * Single equations (assignments): 728 * 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: 23 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 23 {1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,9 42} Notification: Performance of prepare postOptimizeDAE: time 0.005204/12.86, allocations: 0.508 MB / 2.557 GB, free: 70.88 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004097/12.86, allocations: 0.6474 MB / 2.557 GB, free: 70.88 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05624/12.92, allocations: 13.28 MB / 2.57 GB, free: 70.36 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001327/12.92, allocations: 65.81 kB / 2.57 GB, free: 70.36 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.747e-05/12.92, allocations: 2.656 kB / 2.57 GB, free: 70.36 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03497/12.95, allocations: 9.454 MB / 2.579 GB, free: 69.73 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08422/13.04, allocations: 24.58 MB / 2.603 GB, free: 67.35 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001162/13.04, allocations: 14.19 kB / 2.603 GB, free: 67.35 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008516/13.05, allocations: 0.867 MB / 2.604 GB, free: 67.35 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04791/13.09, allocations: 5.471 MB / 2.61 GB, free: 67.11 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002248/13.1, allocations: 225.5 kB / 2.61 GB, free: 67.11 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01999/13.12, allocations: 17.38 MB / 2.627 GB, free: 55.21 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.512e-05/13.12, allocations: 22.94 kB / 2.627 GB, free: 55.21 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05435/13.17, allocations: 18.93 MB / 2.645 GB, free: 50.75 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008491/13.18, allocations: 1.737 MB / 2.647 GB, free: 50.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003964/13.18, allocations: 161.2 kB / 2.647 GB, free: 50.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0111/13.2, allocations: 331.8 kB / 2.647 GB, free: 50.3 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002672/13.2, allocations: 463 kB / 2.648 GB, free: 50.28 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002418/13.2, allocations: 328.2 kB / 2.648 GB, free: 50.28 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.01/13.21, allocations: 3.142 MB / 2.651 GB, free: 50.07 MB / 0.5886 GB Notification: Performance of sort global known variables: time 9.01e-07/13.21, allocations: 0.8438 kB / 2.651 GB, free: 50.07 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.03436/13.24, allocations: 5.963 MB / 2.657 GB, free: 50.07 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 69 * Number of states: 22 (pipe1.mediums[1].T,pipe1.mediums[2].T,pipe2.mediums[1].T,pipe2.mediums[2].T,pipe3.mediums[1].T,pipe3.mediums[2].T,pipe4.mediums[1].T,pipe4.mediums[2].T,pipe6.mediums[1].T,pipe6.mediums[2].T,pipe7.mediums[1].T,pipe7.mediums[2].T,pipe8.mediums[1].T,pipe8.mediums[2].T,pipe9.mediums[1].T,pipe9.mediums[2].T,pipe10.mediums[1].T,pipe10.mediums[2].T,pipe5.mediums[1].T,pipe5.mediums[2].T,pipe11.mediums[1].T,pipe11.mediums[2].T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (500): * Single equations (assignments): 477 * 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: 23 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 23 {1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,12 63} Notification: Performance of Backend phase and start with SimCode phase: time 0.0695/13.31, allocations: 26.33 MB / 2.683 GB, free: 38.84 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0503/13.36, allocations: 15.25 MB / 2.698 GB, free: 34.04 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-05/13.36, allocations: 4.969 kB / 2.698 GB, free: 34.04 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.01727/13.38, allocations: 4.802 MB / 2.702 GB, free: 32.59 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02397/13.41, allocations: 2.634 MB / 2.705 GB, free: 31.98 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06287/13.47, allocations: 17.68 MB / 2.722 GB, free: 26.22 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009066/13.48, allocations: 4.432 MB / 2.727 GB, free: 23.21 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01035/13.49, allocations: 3.252 MB / 2.73 GB, free: 20.26 MB / 0.5886 GB Notification: Performance of SimCode: time 2.054e-06/13.49, allocations: 0 / 2.73 GB, free: 20.26 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 11.08/24.57, allocations: 0.7685 GB / 3.498 GB, free: 98.23 MB / 0.6198 GB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.IncompressibleFluidNetwork.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.IncompressibleFluidNetwork.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.IncompressibleFluidNetwork.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.IncompressibleFluidNetwork.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.IncompressibleFluidNetwork_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_IncompressibleFluidNetwork_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_IncompressibleFluidNetwork.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.IncompressibleFluidNetwork.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Fluid.Examples.IncompressibleFluidNetwork_res.mat does not exist to compare? outputFormat=mat