Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_4_0_0_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.000953/0.000953, allocations: 94.83 kB / 16.3 MB, free: 5.992 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.001042/0.001042, allocations: 184.6 kB / 17.2 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 223.2 MB / 241.1 MB, free: 5.457 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002867/0.0002868, allocations: 6.688 kB / 300.8 MB, free: 6.027 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1109, allocations: 50.42 MB / 351.2 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.07458/0.1855, allocations: 67.55 MB / 418.8 MB, free: 7.953 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2392/0.4247, allocations: 20.67 MB / 439.4 MB, free: 4.141 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002934/0.4277, allocations: 104.2 kB / 439.5 MB, free: 4.141 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002931/0.4306, allocations: 0.9218 MB / 440.4 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008996/0.4397, allocations: 2.695 MB / 443.1 MB, free: 4.109 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01844/0.4581, allocations: 5.437 MB / 448.6 MB, free: 4.055 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01035/0.4685, allocations: 3.877 MB / 452.5 MB, free: 4.055 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004096/0.4726, allocations: 1.527 MB / 454 MB, free: 3.922 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2102/0.6828, allocations: 123.9 MB / 0.5643 GB, free: 12.09 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3322/1.015, allocations: 53.33 MB / 0.6164 GB, free: 127.1 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008568/1.016, allocations: 128 kB / 0.6165 GB, free: 127 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01535/1.031, allocations: 8.009 MB / 0.6244 GB, free: 121.1 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001961/1.033, allocations: 0.8766 MB / 0.6252 GB, free: 120.7 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00158/1.035, allocations: 0.53 MB / 0.6257 GB, free: 120.4 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007116/1.042, allocations: 3.827 MB / 0.6295 GB, free: 117.2 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/1.042, allocations: 4 kB / 0.6295 GB, free: 117.1 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.004e-06/1.042, allocations: 3.656 kB / 0.6295 GB, free: 117.1 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0001006/1.042, allocations: 0 / 0.6295 GB, free: 117.1 MB / 478.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.007877/1.05, allocations: 3.005 MB / 0.6324 GB, free: 114.3 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/1.05, allocations: 8.031 kB / 0.6324 GB, free: 114.3 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001009/1.051, allocations: 341.7 kB / 0.6327 GB, free: 114.1 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009724/1.052, allocations: 309.5 kB / 0.633 GB, free: 113.8 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002812/1.055, allocations: 1.525 MB / 0.6345 GB, free: 112.6 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001507/1.055, allocations: 226.6 kB / 0.6347 GB, free: 112.5 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003064/1.055, allocations: 198.8 kB / 0.6349 GB, free: 112.3 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004855/1.06, allocations: 3.278 MB / 0.6381 GB, free: 109.9 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.085e-05/1.06, allocations: 7.375 kB / 0.6381 GB, free: 109.9 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000222/1.061, allocations: 87.39 kB / 0.6382 GB, free: 109.9 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000252/1.061, allocations: 255.9 kB / 0.6385 GB, free: 109.7 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004502/1.065, allocations: 3.103 MB / 0.6415 GB, free: 107.6 MB / 478.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.01721/1.083, allocations: 13.96 MB / 0.6551 GB, free: 95.43 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003443/1.086, allocations: 2.21 MB / 0.6573 GB, free: 94.03 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00797/1.094, allocations: 5.929 MB / 0.6631 GB, free: 88.78 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.561e-05/1.094, allocations: 57.55 kB / 0.6631 GB, free: 88.73 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008713/1.095, allocations: 180.2 kB / 0.6633 GB, free: 88.58 MB / 478.1 MB Notification: Performance of pre-optimization done (n=173): time 4.668e-06/1.095, allocations: 0 / 0.6633 GB, free: 88.58 MB / 478.1 MB Notification: Performance of matching and sorting (n=199): time 0.01985/1.115, allocations: 9.318 MB / 0.6724 GB, free: 81.58 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.664e-05/1.115, allocations: 77.41 kB / 0.6725 GB, free: 81.49 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002377/1.117, allocations: 1.824 MB / 0.6743 GB, free: 80.09 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004008/1.118, allocations: 60.39 kB / 0.6743 GB, free: 80.05 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006283/1.118, allocations: 1.059 MB / 0.6754 GB, free: 79.39 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006439/1.119, allocations: 0.6827 MB / 0.676 GB, free: 78.8 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001422/1.119, allocations: 44.81 kB / 0.6761 GB, free: 78.8 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/1.119, allocations: 404.5 kB / 0.6765 GB, free: 78.43 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001727/1.121, allocations: 1.208 MB / 0.6776 GB, free: 77.63 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001878/1.123, allocations: 1.772 MB / 0.6794 GB, free: 76.08 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001929/1.125, allocations: 1.462 MB / 0.6808 GB, free: 75.18 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.123e-05/1.125, allocations: 7.953 kB / 0.6808 GB, free: 75.17 MB / 478.1 MB Notification: Performance of matching and sorting (n=300) (initialization): time 0.006291/1.131, allocations: 4.263 MB / 0.685 GB, free: 72.3 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001267/1.133, allocations: 6.963 MB / 0.6918 GB, free: 64.91 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.751e-05/1.133, allocations: 17.31 kB / 0.6918 GB, free: 64.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.013/1.146, allocations: 3.639 MB / 0.6953 GB, free: 61.66 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001324/1.147, allocations: 332.8 kB / 0.6956 GB, free: 61.38 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006054/1.153, allocations: 4.019 MB / 0.6996 GB, free: 58.49 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002682/1.156, allocations: 198.7 kB / 0.6998 GB, free: 58.34 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002376/1.156, allocations: 117.9 kB / 0.6999 GB, free: 58.24 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/1.156, allocations: 7.953 kB / 0.6999 GB, free: 58.23 MB / 478.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005664/1.162, allocations: 3.828 MB / 0.7036 GB, free: 55.78 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.036e-05/1.162, allocations: 16 kB / 0.7036 GB, free: 55.77 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009121/1.171, allocations: 2.885 MB / 0.7065 GB, free: 53.25 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001577/1.172, allocations: 371.1 kB / 0.7068 GB, free: 52.93 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004715/1.177, allocations: 3.519 MB / 0.7102 GB, free: 49.51 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002412/1.18, allocations: 185.1 kB / 0.7104 GB, free: 49.33 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002207/1.18, allocations: 115.9 kB / 0.7105 GB, free: 49.22 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * 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 (174): * Single equations (assignments): 173 * 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 {19 108} Notification: Performance of prepare postOptimizeDAE: time 0.001287/1.181, allocations: 0.7071 MB / 0.7112 GB, free: 48.52 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003878/1.182, allocations: 233.2 kB / 0.7114 GB, free: 48.29 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00627/1.188, allocations: 4.002 MB / 0.7154 GB, free: 44.3 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.211e-05/1.188, allocations: 24 kB / 0.7154 GB, free: 44.28 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/1.188, allocations: 0 / 0.7154 GB, free: 44.28 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004526/1.192, allocations: 3.4 MB / 0.7187 GB, free: 40.8 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009549/1.202, allocations: 6.372 MB / 0.7249 GB, free: 34.41 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.396e-06/1.202, allocations: 1.312 kB / 0.7249 GB, free: 34.41 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001302/1.203, allocations: 323.5 kB / 0.7252 GB, free: 34.11 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00404/1.207, allocations: 1.263 MB / 0.7265 GB, free: 32.83 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002042/1.208, allocations: 79.94 kB / 0.7265 GB, free: 32.75 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007101/1.215, allocations: 10.57 MB / 0.7369 GB, free: 21.51 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.267e-06/1.215, allocations: 5.156 kB / 0.7369 GB, free: 21.5 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007658/1.222, allocations: 5.243 MB / 0.742 GB, free: 16.23 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00167/1.224, allocations: 0.6243 MB / 0.7426 GB, free: 15.59 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003754/1.225, allocations: 55.98 kB / 0.7426 GB, free: 15.54 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001411/1.226, allocations: 147.6 kB / 0.7428 GB, free: 15.39 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003834/1.226, allocations: 175.3 kB / 0.7429 GB, free: 15.22 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001667/1.227, allocations: 79.95 kB / 0.743 GB, free: 15.14 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00141/1.228, allocations: 1.22 MB / 0.7442 GB, free: 13.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.2e-07/1.228, allocations: 0 / 0.7442 GB, free: 13.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004065/1.232, allocations: 1.738 MB / 0.7459 GB, free: 12.16 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 (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%) 2,(1,100.0%) 6,(1,100.0%) 2} * Non-linear torn systems: 3 {1 9,2 8,6 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.009088/1.241, allocations: 6.669 MB / 0.7524 GB, free: 5.543 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009083/1.25, allocations: 5.038 MB / 0.7573 GB, free: 0.6055 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/1.25, allocations: 0 / 0.7573 GB, free: 0.6055 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004056/1.254, allocations: 2.257 MB / 0.7596 GB, free: 14.32 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004699/1.259, allocations: 0.932 MB / 0.7605 GB, free: 13.4 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2022/1.461, allocations: 20.31 MB / 0.7803 GB, free: 189.4 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001753/1.463, allocations: 1.926 MB / 0.7822 GB, free: 188.6 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003519/1.467, allocations: 0.9657 MB / 0.7831 GB, free: 188.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001337/1.468, allocations: 1.008 MB / 0.7841 GB, free: 188.6 MB / 494.1 MB Notification: Performance of SimCode: time 1.573e-06/1.468, allocations: 0 / 0.7841 GB, free: 188.6 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1259/1.594, allocations: 90.87 MB / 0.8728 GB, free: 113.8 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000196/1.594, allocations: 208.5 kB / 0.873 GB, free: 113.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.391/5.985, allocations: 0 / 0.873 GB, free: 113.5 MB / 494.1 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_HeatingSystem_fmu --startTime=0 --stopTime=6000 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_HeatingSystem.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem_res.mat does not exist to compare? outputFormat=mat