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.001252/0.001257, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001311/0.001312, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001783/0.001783, allocations: 63.89 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2313/0.2331, allocations: 50.56 MB / 408.8 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.09787/0.331, allocations: 90.41 MB / 499.2 MB, free: 6.711 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03237/0.3634, allocations: 21.34 MB / 0.5084 GB, free: 1.316 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002196/0.3656, allocations: 91.5 kB / 0.5085 GB, free: 1.227 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002461/0.3681, allocations: 0.9434 MB / 0.5094 GB, free: 284 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009326/0.3775, allocations: 3.74 MB / 0.513 GB, free: 12.52 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01246/0.39, allocations: 5.668 MB / 0.5186 GB, free: 6.848 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01027/0.4003, allocations: 7.077 MB / 0.5255 GB, free: 15.76 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003402/0.4037, allocations: 1.848 MB / 0.5273 GB, free: 13.89 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3792/0.783, allocations: 74.95 MB / 0.6005 GB, free: 11.9 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07309/0.8561, allocations: 31.95 MB / 0.6317 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001/0.8571, allocations: 248 kB / 0.6319 GB, free: 0.707 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01425/0.8714, allocations: 6.118 MB / 0.6379 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.00172/0.8731, allocations: 1.09 MB / 0.6389 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.002683/0.8758, allocations: 1.496 MB / 0.6404 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01134/0.8872, allocations: 5.557 MB / 0.6458 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.8872, allocations: 4 kB / 0.6458 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.663e-06/0.8872, allocations: 0 / 0.6458 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.599e-05/0.8873, allocations: 3.188 kB / 0.6458 GB, free: 5.801 MB / 0.4981 GB 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.009236/0.8966, allocations: 3.602 MB / 0.6494 GB, free: 2.195 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.8966, allocations: 8.031 kB / 0.6494 GB, free: 2.188 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006087/0.8973, allocations: 345.5 kB / 0.6497 GB, free: 1.848 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001078/0.8983, allocations: 326.1 kB / 0.65 GB, free: 1.527 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002975/0.9013, allocations: 1.688 MB / 0.6517 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002087/0.9016, allocations: 221.4 kB / 0.6519 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000346/0.9019, allocations: 196.8 kB / 0.6521 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005535/0.9075, allocations: 3.306 MB / 0.6553 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.559e-05/0.9075, allocations: 4 kB / 0.6553 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002442/0.9078, allocations: 83.64 kB / 0.6554 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003314/0.9081, allocations: 259.2 kB / 0.6556 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005447/0.9136, allocations: 3.107 MB / 0.6587 GB, free: 8.684 MB / 0.5137 GB 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.0202/0.9338, allocations: 13.83 MB / 0.6722 GB, free: 10.17 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004464/0.9383, allocations: 2.224 MB / 0.6743 GB, free: 7.957 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002386/0.9407, allocations: 1.371 MB / 0.6757 GB, free: 6.59 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009068/0.9498, allocations: 5.867 MB / 0.6814 GB, free: 264 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.542e-05/0.9499, allocations: 52.56 kB / 0.6814 GB, free: 204 kB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006786/0.9506, allocations: 178.5 kB / 0.6816 GB, free: 24 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=171): time 3.507e-06/0.9506, allocations: 0 / 0.6816 GB, free: 24 kB / 0.5294 GB Notification: Performance of matching and sorting (n=197): time 0.02327/0.9738, allocations: 9.192 MB / 0.6906 GB, free: 6.773 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.624e-05/0.9739, allocations: 73.41 kB / 0.6907 GB, free: 6.691 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002744/0.9767, allocations: 1.849 MB / 0.6925 GB, free: 4.801 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0002932/0.977, allocations: 57.7 kB / 0.6925 GB, free: 4.738 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009529/0.978, allocations: 1.094 MB / 0.6936 GB, free: 3.641 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007807/0.9788, allocations: 0.7047 MB / 0.6943 GB, free: 2.945 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007961/0.9796, allocations: 463.7 kB / 0.6947 GB, free: 2.488 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000117/0.9797, allocations: 305.1 kB / 0.695 GB, free: 2.188 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002125/0.9818, allocations: 1.237 MB / 0.6962 GB, free: 0.9414 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002597/0.9844, allocations: 1.799 MB / 0.698 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004796/0.9892, allocations: 3.163 MB / 0.7011 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.294e-05/0.9893, allocations: 4 kB / 0.7011 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007609/0.9969, allocations: 4.315 MB / 0.7053 GB, free: 7.352 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.198e-05/0.9969, allocations: 12 kB / 0.7053 GB, free: 7.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.802e-05/0.997, allocations: 20 kB / 0.7053 GB, free: 7.32 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01405/1.011, allocations: 3.629 MB / 0.7089 GB, free: 3.699 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001319/1.012, allocations: 333.1 kB / 0.7092 GB, free: 3.398 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00685/1.019, allocations: 3.946 MB / 0.713 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001905/1.021, allocations: 103.9 kB / 0.7131 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002679/1.021, allocations: 112 kB / 0.7132 GB, free: 15.25 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0029/1.024, allocations: 1.672 MB / 0.7149 GB, free: 13.57 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002469/1.027, allocations: 1.754 MB / 0.7166 GB, free: 11.57 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004614/1.031, allocations: 3.049 MB / 0.7196 GB, free: 8.355 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.139e-05/1.032, allocations: 8 kB / 0.7196 GB, free: 8.348 MB / 0.5762 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.007231/1.039, allocations: 4.042 MB / 0.7235 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.892e-05/1.039, allocations: 15.94 kB / 0.7235 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.55e-05/1.039, allocations: 16 kB / 0.7235 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009795/1.049, allocations: 2.746 MB / 0.7262 GB, free: 1.629 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001631/1.05, allocations: 376.8 kB / 0.7266 GB, free: 1.285 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005809/1.056, allocations: 3.465 MB / 0.73 GB, free: 13.82 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001996/1.058, allocations: 103.9 kB / 0.7301 GB, free: 13.72 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003093/1.059, allocations: 112 kB / 0.7302 GB, free: 13.61 MB / 0.5919 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.0006572/1.059, allocations: 311.8 kB / 0.7305 GB, free: 13.32 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000663/1.06, allocations: 234.5 kB / 0.7307 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008022/1.068, allocations: 3.951 MB / 0.7346 GB, free: 9.145 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.307e-05/1.068, allocations: 27.98 kB / 0.7346 GB, free: 9.117 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.159e-05/1.068, allocations: 4 kB / 0.7346 GB, free: 9.113 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006035/1.074, allocations: 3.372 MB / 0.7379 GB, free: 5.664 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01121/1.085, allocations: 6.298 MB / 0.744 GB, free: 15.34 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.398e-06/1.085, allocations: 0 / 0.744 GB, free: 15.34 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001393/1.087, allocations: 316.8 kB / 0.7443 GB, free: 15.05 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004109/1.091, allocations: 1.157 MB / 0.7455 GB, free: 13.87 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002634/1.091, allocations: 75.94 kB / 0.7455 GB, free: 13.79 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01038/1.101, allocations: 11.06 MB / 0.7563 GB, free: 2.012 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/1.101, allocations: 0 / 0.7563 GB, free: 2.012 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1948/1.296, allocations: 5.194 MB / 0.7614 GB, free: 282.4 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001312/1.298, allocations: 0.6112 MB / 0.762 GB, free: 282.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003922/1.298, allocations: 57.42 kB / 0.7621 GB, free: 282.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001261/1.299, allocations: 72.61 kB / 0.7621 GB, free: 282.3 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003748/1.3, allocations: 166.9 kB / 0.7623 GB, free: 282.3 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001643/1.3, allocations: 77.88 kB / 0.7624 GB, free: 282.3 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.00139/1.301, allocations: 1.26 MB / 0.7636 GB, free: 281.9 MB / 0.6075 GB Notification: Performance of sort global known variables: time 7.11e-07/1.301, allocations: 0 / 0.7636 GB, free: 281.9 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.003678/1.305, allocations: 1.76 MB / 0.7653 GB, free: 281.8 MB / 0.6075 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), (5,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009006/1.314, allocations: 6.671 MB / 0.7718 GB, free: 279.3 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.009162/1.323, allocations: 5.113 MB / 0.7768 GB, free: 277.4 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/1.323, allocations: 0 / 0.7768 GB, free: 277.4 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.003358/1.327, allocations: 2.249 MB / 0.779 GB, free: 275.4 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004564/1.331, allocations: 1.068 MB / 0.7801 GB, free: 274.6 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03022/1.361, allocations: 24.27 MB / 0.8038 GB, free: 250.3 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001096/1.362, allocations: 1.879 MB / 0.8056 GB, free: 248.4 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.002463/1.365, allocations: 0.9526 MB / 0.8065 GB, free: 247.4 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001069/1.366, allocations: 1.003 MB / 0.8075 GB, free: 246.4 MB / 0.6075 GB Notification: Performance of SimCode: time 1.022e-06/1.366, allocations: 0 / 0.8075 GB, free: 246.4 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1321/1.498, allocations: 98.89 MB / 0.9041 GB, free: 147.8 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.03/18.52, allocations: 7.75 kB / 0.9041 GB, free: 147.8 MB / 0.6075 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