Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002419/0.00242, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.742/1.742, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008688/0.0008689, allocations: 87.66 kB / 292.1 MB, free: 5.918 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.94e-05/3.944e-05, allocations: 8.219 kB / 350.6 MB, free: 2.438 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1248, allocations: 51.49 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.134/9.259, allocations: 3.161 GB / 3.554 GB, free: 88.6 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003281/9.259, allocations: 78.66 kB / 3.554 GB, free: 88.57 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 10.96/20.22, allocations: 3.114 GB / 6.668 GB, free: 9.188 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.543e-06/20.22, allocations: 3.938 kB / 6.668 GB, free: 9.184 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003916/20.22, allocations: 63.98 kB / 6.669 GB, free: 9.121 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 538 * Number of variables: 538 Notification: Performance of Generate backend data structure: time 0.01594/20.23, allocations: 3.601 MB / 6.672 GB, free: 5.465 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.301e-05/20.23, allocations: 12.03 kB / 6.672 GB, free: 5.453 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002125/20.24, allocations: 339.3 kB / 6.672 GB, free: 5.109 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002861/20.24, allocations: 316.5 kB / 6.673 GB, free: 4.797 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006931/20.25, allocations: 2.024 MB / 6.675 GB, free: 2.719 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002858/20.25, allocations: 223.2 kB / 6.675 GB, free: 2.488 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001289/20.25, allocations: 199.9 kB / 6.675 GB, free: 2.293 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4019/20.65, allocations: 3.303 MB / 6.678 GB, free: 29.43 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.789e-05/20.65, allocations: 5.062 kB / 6.678 GB, free: 29.43 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003809/20.65, allocations: 89.34 kB / 6.678 GB, free: 29.43 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002941/20.65, allocations: 211.4 kB / 6.679 GB, free: 29.43 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005688/20.66, allocations: 3.019 MB / 6.682 GB, free: 29.41 MB / 490.7 MB 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.01867/20.68, allocations: 12.44 MB / 6.694 GB, free: 24.62 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00347/20.68, allocations: 2.211 MB / 6.696 GB, free: 24.46 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001842/20.68, allocations: 1.343 MB / 6.697 GB, free: 24.45 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008569/20.69, allocations: 5.984 MB / 6.703 GB, free: 21.69 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.426e-05/20.69, allocations: 53.56 kB / 6.703 GB, free: 21.65 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00108/20.69, allocations: 192.2 kB / 6.703 GB, free: 21.59 MB / 490.7 MB Notification: Performance of pre-optimization done (n=172): time 4.108e-06/20.69, allocations: 2.719 kB / 6.703 GB, free: 21.59 MB / 490.7 MB Notification: Performance of matching and sorting (n=198): time 0.01531/20.71, allocations: 7.246 MB / 6.71 GB, free: 20.72 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.824e-05/20.71, allocations: 129.2 kB / 6.71 GB, free: 20.59 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003383/20.71, allocations: 1.655 MB / 6.712 GB, free: 20.36 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000631/20.71, allocations: 64.11 kB / 6.712 GB, free: 20.32 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00112/20.71, allocations: 1.048 MB / 6.713 GB, free: 19.91 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001124/20.71, allocations: 0.6726 MB / 6.714 GB, free: 19.48 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001755/20.71, allocations: 46.47 kB / 6.714 GB, free: 19.48 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002996/20.71, allocations: 404.4 kB / 6.714 GB, free: 19.17 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002448/20.72, allocations: 1.18 MB / 6.715 GB, free: 19.16 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002477/20.72, allocations: 1.699 MB / 6.717 GB, free: 18.61 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002344/20.72, allocations: 1.439 MB / 6.718 GB, free: 18.57 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-05/20.72, allocations: 3.594 kB / 6.718 GB, free: 18.57 MB / 490.7 MB Notification: Performance of matching and sorting (n=293) (initialization): time 0.007162/20.73, allocations: 4.134 MB / 6.722 GB, free: 18.37 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001952/20.73, allocations: 5.886 MB / 6.728 GB, free: 28.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.783e-05/20.73, allocations: 20.48 kB / 6.728 GB, free: 28.22 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01481/20.74, allocations: 3.558 MB / 6.732 GB, free: 28.18 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001546/20.75, allocations: 322.4 kB / 6.732 GB, free: 28.18 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007369/20.75, allocations: 3.941 MB / 6.736 GB, free: 27.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003004/20.76, allocations: 197.2 kB / 6.736 GB, free: 27.58 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002567/20.76, allocations: 106.8 kB / 6.736 GB, free: 27.58 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/20.76, allocations: 6.25 kB / 6.736 GB, free: 27.58 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006299/20.76, allocations: 3.702 MB / 6.74 GB, free: 27.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.416e-05/20.76, allocations: 13.53 kB / 6.74 GB, free: 27.52 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01035/20.77, allocations: 2.896 MB / 6.743 GB, free: 27.48 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001733/20.78, allocations: 368 kB / 6.743 GB, free: 27.48 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005749/20.78, allocations: 3.432 MB / 6.746 GB, free: 26.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002975/20.78, allocations: 189.6 kB / 6.746 GB, free: 26.88 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002985/20.78, allocations: 107.8 kB / 6.747 GB, free: 26.88 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 168 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {18 107} Notification: Performance of prepare postOptimizeDAE: time 0.0007613/20.78, allocations: 236.8 kB / 6.747 GB, free: 26.77 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000606/20.79, allocations: 224.6 kB / 6.747 GB, free: 26.65 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006985/20.79, allocations: 3.886 MB / 6.751 GB, free: 26.43 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.531e-05/20.79, allocations: 27.16 kB / 6.751 GB, free: 26.43 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.23e-05/20.79, allocations: 3.75 kB / 6.751 GB, free: 26.43 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004663/20.8, allocations: 3.286 MB / 6.754 GB, free: 25.96 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01079/20.81, allocations: 6.324 MB / 6.76 GB, free: 25.46 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/20.81, allocations: 7.578 kB / 6.76 GB, free: 25.46 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001372/20.81, allocations: 320.5 kB / 6.761 GB, free: 25.46 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004131/20.81, allocations: 1.195 MB / 6.762 GB, free: 25.39 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002933/20.81, allocations: 78.62 kB / 6.762 GB, free: 25.39 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009175/20.82, allocations: 10.41 MB / 6.772 GB, free: 17.46 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/20.82, allocations: 0 / 6.772 GB, free: 17.46 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008973/20.83, allocations: 5.121 MB / 6.777 GB, free: 16.29 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002223/20.83, allocations: 0.6389 MB / 6.778 GB, free: 15.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004583/20.83, allocations: 59.45 kB / 6.778 GB, free: 15.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001703/20.84, allocations: 150.3 kB / 6.778 GB, free: 15.86 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003896/20.84, allocations: 171.6 kB / 6.778 GB, free: 15.83 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001964/20.84, allocations: 83 kB / 6.778 GB, free: 15.82 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001983/20.84, allocations: 1.272 MB / 6.779 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.51e-07/20.84, allocations: 0.5625 kB / 6.779 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006791/20.85, allocations: 1.948 MB / 6.781 GB, free: 15.05 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (tank.medium.T,tank.level,heater.mediums[1].p,heater.mediums[1].T,radiator.mediums[1].p,radiator.mediums[1].T,pipe.mediums[1].p,pipe.mediums[1].T,pipe.mediums[2].p,pipe.mediums[2].T) * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (183): * Single equations (assignments): 169 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 6,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 9,2 8,6 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.01183/20.86, allocations: 6.942 MB / 6.788 GB, free: 12.4 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01099/20.87, allocations: 4.957 MB / 6.793 GB, free: 10.86 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.015e-05/20.87, allocations: 3.469 kB / 6.793 GB, free: 10.86 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00421/20.87, allocations: 2.206 MB / 6.795 GB, free: 9.785 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006152/20.88, allocations: 0.9809 MB / 6.796 GB, free: 9.57 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01746/20.9, allocations: 5.729 MB / 6.802 GB, free: 7.738 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00236/20.9, allocations: 1.934 MB / 6.803 GB, free: 6.879 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.005326/20.9, allocations: 1.191 MB / 6.805 GB, free: 6.82 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001846/20.91, allocations: 0.9895 MB / 6.806 GB, free: 6.055 MB / 0.4948 GB Notification: Performance of SimCode: time 1.132e-06/20.91, allocations: 0 / 6.806 GB, free: 6.055 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5116/21.42, allocations: 100.3 MB / 6.903 GB, free: 57.79 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001385/21.42, allocations: 174.1 kB / 6.904 GB, free: 57.57 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.588/27.01, allocations: 0 / 6.904 GB, free: 57.57 MB / 0.5105 GB (rm -f Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_HeatingSystem_fmu --startTime=0 --stopTime=6000 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_HeatingSystem.fmu > Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem_res.mat does not exist to compare? outputFormat=mat