Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009987/0.0009984, allocations: 96.73 kB / 16.96 MB, free: 6.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 180.7 kB / 17.84 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.544/1.544, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004727/0.0004729, allocations: 12 kB / 280.9 MB, free: 3.641 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.104, allocations: 47.58 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.286/0.39, allocations: 86.53 MB / 415 MB, free: 10.78 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02535/0.4154, allocations: 20.55 MB / 435.5 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002525/0.418, allocations: 104.4 kB / 435.6 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002186/0.4202, allocations: 0.7788 MB / 436.4 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00885/0.429, allocations: 3.431 MB / 439.8 MB, free: 8.816 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01006/0.4391, allocations: 4.436 MB / 444.3 MB, free: 5.418 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01041/0.4495, allocations: 8.71 MB / 453 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003077/0.4526, allocations: 1.512 MB / 454.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4179/0.8706, allocations: 125.8 MB / 0.5667 GB, free: 74.82 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06409/0.9347, allocations: 55.01 MB / 0.6204 GB, free: 27.8 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007728/0.9355, allocations: 128 kB / 0.6206 GB, free: 27.68 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01637/0.9519, allocations: 7.953 MB / 0.6283 GB, free: 20.84 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002447/0.9544, allocations: 0.9593 MB / 0.6293 GB, free: 20.18 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00157/0.956, allocations: 0.531 MB / 0.6298 GB, free: 19.87 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008221/0.9643, allocations: 3.839 MB / 0.6335 GB, free: 16.73 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.9643, allocations: 4 kB / 0.6335 GB, free: 16.73 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.9643, allocations: 0 / 0.6335 GB, free: 16.73 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.441e-05/0.9644, allocations: 0 / 0.6335 GB, free: 16.73 MB / 430.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.01058/0.975, allocations: 3.025 MB / 0.6365 GB, free: 13.92 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.344e-05/0.9751, allocations: 8.031 kB / 0.6365 GB, free: 13.91 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001082/0.9762, allocations: 339.5 kB / 0.6368 GB, free: 13.7 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00122/0.9774, allocations: 308.6 kB / 0.6371 GB, free: 13.39 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002824/0.9802, allocations: 1.523 MB / 0.6386 GB, free: 12.21 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001518/0.9804, allocations: 220.7 kB / 0.6388 GB, free: 12.05 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002808/0.9807, allocations: 202.4 kB / 0.639 GB, free: 11.92 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004109/0.9848, allocations: 3.29 MB / 0.6422 GB, free: 9.504 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.49e-05/0.9849, allocations: 10.72 kB / 0.6422 GB, free: 9.496 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000203/0.9851, allocations: 84.92 kB / 0.6423 GB, free: 9.477 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000227/0.9853, allocations: 250.2 kB / 0.6425 GB, free: 9.266 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003974/0.9893, allocations: 3.113 MB / 0.6456 GB, free: 7.195 MB / 430.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.0162/1.006, allocations: 13.83 MB / 0.6591 GB, free: 11.08 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004083/1.01, allocations: 2.208 MB / 0.6612 GB, free: 9.676 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002339/1.012, allocations: 1.352 MB / 0.6626 GB, free: 8.777 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008956/1.021, allocations: 5.875 MB / 0.6683 GB, free: 3.543 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.73e-05/1.021, allocations: 48.94 kB / 0.6684 GB, free: 3.5 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008767/1.022, allocations: 184.5 kB / 0.6685 GB, free: 3.344 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 3.667e-06/1.022, allocations: 0 / 0.6685 GB, free: 3.344 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.02367/1.046, allocations: 9.3 MB / 0.6776 GB, free: 11.94 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.373e-05/1.046, allocations: 77.39 kB / 0.6777 GB, free: 11.85 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003628/1.049, allocations: 1.825 MB / 0.6795 GB, free: 9.984 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004811/1.05, allocations: 61.7 kB / 0.6795 GB, free: 9.918 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001136/1.051, allocations: 1.064 MB / 0.6806 GB, free: 8.848 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001164/1.052, allocations: 0.6862 MB / 0.6812 GB, free: 8.168 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003195/1.053, allocations: 48 kB / 0.6813 GB, free: 8.121 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0005672/1.053, allocations: 402.6 kB / 0.6817 GB, free: 7.723 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002357/1.055, allocations: 1.191 MB / 0.6828 GB, free: 6.527 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003092/1.059, allocations: 1.777 MB / 0.6846 GB, free: 4.516 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002653/1.061, allocations: 1.45 MB / 0.686 GB, free: 3.082 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-05/1.061, allocations: 8 kB / 0.686 GB, free: 3.074 MB / 462.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007982/1.069, allocations: 4.214 MB / 0.6901 GB, free: 14.95 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000495/1.07, allocations: 0.5955 MB / 0.6907 GB, free: 14.12 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.281e-05/1.07, allocations: 16 kB / 0.6907 GB, free: 14.11 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.013/1.083, allocations: 3.674 MB / 0.6943 GB, free: 10.44 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001357/1.084, allocations: 326.1 kB / 0.6946 GB, free: 10.14 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007788/1.092, allocations: 3.941 MB / 0.6984 GB, free: 6.203 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00258/1.095, allocations: 187.8 kB / 0.6986 GB, free: 6.02 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004009/1.095, allocations: 112 kB / 0.6987 GB, free: 5.91 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/1.095, allocations: 4 kB / 0.6987 GB, free: 5.906 MB / 478.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007085/1.102, allocations: 3.795 MB / 0.7024 GB, free: 2.219 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-05/1.102, allocations: 16 kB / 0.7025 GB, free: 2.203 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1801/1.282, allocations: 2.839 MB / 0.7052 GB, free: 201.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001879/1.284, allocations: 378.1 kB / 0.7056 GB, free: 201.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006084/1.29, allocations: 3.464 MB / 0.709 GB, free: 200.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002144/1.293, allocations: 186.2 kB / 0.7091 GB, free: 200.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000379/1.293, allocations: 111 kB / 0.7093 GB, free: 200.7 MB / 478.1 MB 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.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 initialization (175): * Single equations (assignments): 174 * 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.001625/1.295, allocations: 0.7032 MB / 0.7099 GB, free: 200.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000801/1.295, allocations: 223.9 kB / 0.7102 GB, free: 200.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008997/1.304, allocations: 3.969 MB / 0.714 GB, free: 199.6 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.995e-05/1.305, allocations: 23.58 kB / 0.7141 GB, free: 199.6 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.813e-05/1.305, allocations: 6.344 kB / 0.7141 GB, free: 199.6 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005618/1.31, allocations: 3.391 MB / 0.7174 GB, free: 198.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008781/1.319, allocations: 6.309 MB / 0.7235 GB, free: 195.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.935e-06/1.319, allocations: 0 / 0.7235 GB, free: 195.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001213/1.32, allocations: 314 kB / 0.7238 GB, free: 195.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003651/1.324, allocations: 1.233 MB / 0.725 GB, free: 195.5 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001587/1.324, allocations: 73.69 kB / 0.7251 GB, free: 195.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006652/1.331, allocations: 10.44 MB / 0.7353 GB, free: 186 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/1.331, allocations: 0 / 0.7353 GB, free: 186 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006622/1.337, allocations: 5.191 MB / 0.7404 GB, free: 182.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000993/1.338, allocations: 0.5992 MB / 0.741 GB, free: 182 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003116/1.339, allocations: 59.95 kB / 0.741 GB, free: 181.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001256/1.34, allocations: 150.8 kB / 0.7412 GB, free: 181.8 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002875/1.34, allocations: 169.8 kB / 0.7413 GB, free: 181.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001561/1.34, allocations: 79.95 kB / 0.7414 GB, free: 181.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001406/1.342, allocations: 1.245 MB / 0.7426 GB, free: 180.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.342, allocations: 0 / 0.7426 GB, free: 180.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003624/1.346, allocations: 1.737 MB / 0.7443 GB, free: 178.7 MB / 478.1 MB 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 (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%) 2,(1,100.0%) 2,(1,100.0%) 6} * Non-linear torn systems: 3 {1 9,2 8,6 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.008328/1.354, allocations: 6.616 MB / 0.7508 GB, free: 172.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007756/1.362, allocations: 4.981 MB / 0.7556 GB, free: 167.2 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/1.362, allocations: 0 / 0.7556 GB, free: 167.2 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003068/1.365, allocations: 2.236 MB / 0.7578 GB, free: 164.9 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004018/1.369, allocations: 0.9998 MB / 0.7588 GB, free: 164 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04312/1.412, allocations: 19.55 MB / 0.7779 GB, free: 143.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001605/1.414, allocations: 1.875 MB / 0.7797 GB, free: 141.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004634/1.418, allocations: 0.9487 MB / 0.7806 GB, free: 140.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001686/1.42, allocations: 1.015 MB / 0.7816 GB, free: 139.5 MB / 478.1 MB Notification: Performance of SimCode: time 9.92e-07/1.42, allocations: 0 / 0.7816 GB, free: 139.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2298/1.65, allocations: 93.21 MB / 0.8727 GB, free: 46.16 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001398/1.65, allocations: 209.3 kB / 0.8729 GB, free: 45.91 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.774/6.424, allocations: 2.953 kB / 0.8729 GB, free: 45.91 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_HeatingSystem_fmu --startTime=0 --stopTime=6000 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_HeatingSystem.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem_res.mat does not exist to compare? outputFormat=mat