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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0007517/0.0007519, allocations: 93.78 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008897/0.0008899, allocations: 201.9 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.218/1.218, allocations: 227.7 MB / 246.8 MB, free: 9.699 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001963/0.0001963, allocations: 8 kB / 307.8 MB, free: 0.5352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07958/0.07979, allocations: 51.53 MB / 359.4 MB, free: 13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2218/0.3016, allocations: 94.07 MB / 453.4 MB, free: 12.84 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02865/0.3303, allocations: 22.35 MB / 475.8 MB, free: 6.438 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002296/0.3326, allocations: 107.1 kB / 475.9 MB, free: 6.332 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002/0.3346, allocations: 0.8238 MB / 476.7 MB, free: 5.504 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007918/0.3426, allocations: 3.528 MB / 480.2 MB, free: 1.961 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01043/0.353, allocations: 4.945 MB / 485.2 MB, free: 13.02 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01084/0.3639, allocations: 10.74 MB / 495.9 MB, free: 2.254 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002358/0.3663, allocations: 1.588 MB / 497.5 MB, free: 0.6445 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3054/0.6717, allocations: 73.45 MB / 0.5576 GB, free: 41.3 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04945/0.7212, allocations: 31.97 MB / 0.5888 GB, free: 30.34 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006489/0.7219, allocations: 129.4 kB / 0.5889 GB, free: 30.34 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009654/0.7315, allocations: 5.983 MB / 0.5948 GB, free: 26 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001065/0.7326, allocations: 0.9706 MB / 0.5957 GB, free: 25.34 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001504/0.7341, allocations: 1.389 MB / 0.5971 GB, free: 24.66 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00543/0.7396, allocations: 5.333 MB / 0.6023 GB, free: 20.57 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.7396, allocations: 0 / 0.6023 GB, free: 20.57 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.7396, allocations: 0 / 0.6023 GB, free: 20.57 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.041e-05/0.7396, allocations: 0 / 0.6023 GB, free: 20.57 MB / 446.1 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.005751/0.7454, allocations: 3.001 MB / 0.6052 GB, free: 17.82 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.7454, allocations: 8.031 kB / 0.6052 GB, free: 17.82 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004304/0.7459, allocations: 342.4 kB / 0.6055 GB, free: 17.6 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006664/0.7465, allocations: 310.4 kB / 0.6058 GB, free: 17.29 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001863/0.7484, allocations: 1.583 MB / 0.6074 GB, free: 16.05 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001272/0.7486, allocations: 217.2 kB / 0.6076 GB, free: 15.89 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002675/0.7488, allocations: 193.6 kB / 0.6078 GB, free: 15.77 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003764/0.7526, allocations: 3.311 MB / 0.611 GB, free: 13.33 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.681e-05/0.7527, allocations: 10.53 kB / 0.611 GB, free: 13.32 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002029/0.7529, allocations: 89.45 kB / 0.6111 GB, free: 13.3 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002239/0.7531, allocations: 249.8 kB / 0.6113 GB, free: 13.08 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003949/0.7571, allocations: 3.123 MB / 0.6144 GB, free: 11 MB / 446.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.01345/0.7705, allocations: 13.83 MB / 0.6279 GB, free: 14.88 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003631/0.7742, allocations: 2.231 MB / 0.6301 GB, free: 13.46 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001935/0.7761, allocations: 1.361 MB / 0.6314 GB, free: 12.56 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007629/0.7838, allocations: 5.865 MB / 0.6371 GB, free: 6.305 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.633e-05/0.7838, allocations: 52.56 kB / 0.6372 GB, free: 6.246 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006379/0.7845, allocations: 189.9 kB / 0.6373 GB, free: 6.059 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 3.947e-06/0.7845, allocations: 0 / 0.6373 GB, free: 6.059 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.02016/0.8046, allocations: 9.214 MB / 0.6463 GB, free: 12.78 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.09e-05/0.8047, allocations: 73.41 kB / 0.6464 GB, free: 12.69 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002265/0.807, allocations: 1.849 MB / 0.6482 GB, free: 10.8 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001542/0.8072, allocations: 61.7 kB / 0.6483 GB, free: 10.73 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007258/0.8079, allocations: 1.062 MB / 0.6493 GB, free: 9.664 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005264/0.8084, allocations: 0.6837 MB / 0.65 GB, free: 8.992 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002717/0.8087, allocations: 194.4 kB / 0.6502 GB, free: 8.797 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.468e-05/0.8088, allocations: 301.1 kB / 0.6505 GB, free: 8.5 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00186/0.8107, allocations: 1.226 MB / 0.6517 GB, free: 7.27 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002221/0.8129, allocations: 1.807 MB / 0.6534 GB, free: 5.227 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00414/0.817, allocations: 3.171 MB / 0.6565 GB, free: 1.887 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.764e-06/0.8171, allocations: 8 kB / 0.6565 GB, free: 1.879 MB / 478.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.006519/0.8236, allocations: 4.298 MB / 0.6607 GB, free: 13.67 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003605/0.824, allocations: 0.5988 MB / 0.6613 GB, free: 12.84 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.205e-05/0.824, allocations: 20 kB / 0.6613 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01286/0.8369, allocations: 3.653 MB / 0.6649 GB, free: 9.184 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00116/0.838, allocations: 334.1 kB / 0.6652 GB, free: 8.883 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00592/0.844, allocations: 3.951 MB / 0.6691 GB, free: 4.93 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00216/0.8461, allocations: 187.8 kB / 0.6693 GB, free: 4.746 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002075/0.8464, allocations: 116 kB / 0.6694 GB, free: 4.633 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.062e-05/0.8464, allocations: 6.812 kB / 0.6694 GB, free: 4.629 MB / 494.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005818/0.8522, allocations: 3.815 MB / 0.6731 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.458e-05/0.8522, allocations: 16 kB / 0.6731 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009218/0.8615, allocations: 2.877 MB / 0.6759 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00151/0.863, allocations: 374.9 kB / 0.6763 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005222/0.8682, allocations: 3.48 MB / 0.6797 GB, free: 10.24 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002047/0.8703, allocations: 191.5 kB / 0.6799 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000274/0.8706, allocations: 108 kB / 0.68 GB, free: 9.945 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 4 (tank.inFlow[2],tank.inFlow[1],tank.regularFlow[2],tank.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (175): * Single equations (assignments): 174 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(18,107)} Notification: Performance of prepare postOptimizeDAE: time 0.001325/0.8719, allocations: 0.7115 MB / 0.6807 GB, free: 9.25 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005088/0.8724, allocations: 225.3 kB / 0.6809 GB, free: 9.027 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007452/0.8799, allocations: 3.972 MB / 0.6847 GB, free: 5.062 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.491e-05/0.8799, allocations: 20 kB / 0.6848 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.674e-05/0.88, allocations: 4 kB / 0.6848 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005515/0.8855, allocations: 3.392 MB / 0.6881 GB, free: 1.574 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01013/0.8956, allocations: 6.326 MB / 0.6943 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/0.8957, allocations: 8 kB / 0.6943 GB, free: 11.22 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001281/0.8969, allocations: 314.6 kB / 0.6946 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004197/0.9012, allocations: 1.227 MB / 0.6958 GB, free: 9.684 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001888/0.9014, allocations: 75.95 kB / 0.6958 GB, free: 9.609 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009313/0.9107, allocations: 10.46 MB / 0.7061 GB, free: 14.47 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.9107, allocations: 8.062 kB / 0.7061 GB, free: 14.46 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008801/0.9195, allocations: 5.204 MB / 0.7111 GB, free: 9.234 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001317/0.9209, allocations: 0.5993 MB / 0.7117 GB, free: 8.613 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000534/0.9214, allocations: 56.17 kB / 0.7118 GB, free: 8.559 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001705/0.9231, allocations: 143.7 kB / 0.7119 GB, free: 8.418 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003969/0.9235, allocations: 181 kB / 0.7121 GB, free: 8.246 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002069/0.9238, allocations: 80.34 kB / 0.7122 GB, free: 8.168 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002102/0.9259, allocations: 1.26 MB / 0.7134 GB, free: 6.887 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7.11e-07/0.9259, allocations: 0 / 0.7134 GB, free: 6.887 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004902/0.9308, allocations: 1.749 MB / 0.7151 GB, free: 5.137 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (tank.level,tank.medium.T,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (182): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,9), (2,8), (6,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.1666/1.097, allocations: 6.664 MB / 0.7216 GB, free: 239.6 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01125/1.109, allocations: 5.037 MB / 0.7265 GB, free: 239.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.693e-06/1.109, allocations: 1.75 kB / 0.7265 GB, free: 239.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00408/1.113, allocations: 2.25 MB / 0.7287 GB, free: 238.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005432/1.118, allocations: 1.015 MB / 0.7297 GB, free: 238.2 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03943/1.158, allocations: 27.83 MB / 0.7569 GB, free: 222.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001325/1.159, allocations: 1.877 MB / 0.7587 GB, free: 221.6 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00289/1.162, allocations: 0.9598 MB / 0.7597 GB, free: 220.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001065/1.163, allocations: 1.003 MB / 0.7607 GB, free: 219.9 MB / 0.5294 GB Notification: Performance of SimCode: time 6.51e-07/1.163, allocations: 0 / 0.7607 GB, free: 219.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1024/1.265, allocations: 94.13 MB / 0.8526 GB, free: 126.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001499/1.266, allocations: 230 kB / 0.8528 GB, free: 125.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.017/5.282, allocations: 0 / 0.8528 GB, free: 125.9 MB / 0.5294 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/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