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.0008111/0.0008111, allocations: 91.55 kB / 16.31 MB, free: 5.664 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.0008668/0.0008669, allocations: 181.6 kB / 17.21 MB, free: 5.586 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.367/1.367, allocations: 223.3 MB / 241.2 MB, free: 5.43 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002805/0.0002805, allocations: 8.438 kB / 300.9 MB, free: 6.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1048, allocations: 50.43 MB / 351.3 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2918/0.3967, allocations: 86.47 MB / 437.8 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02748/0.4242, allocations: 20.58 MB / 458.4 MB, free: 4.586 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003119/0.4274, allocations: 107.2 kB / 458.5 MB, free: 4.586 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002257/0.4296, allocations: 0.7783 MB / 459.3 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00977/0.4394, allocations: 3.429 MB / 462.7 MB, free: 3.992 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01469/0.4541, allocations: 4.474 MB / 467.2 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009642/0.4638, allocations: 8.703 MB / 475.9 MB, free: 296 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004132/0.468, allocations: 1.633 MB / 477.5 MB, free: 0 / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.207/0.675, allocations: 125.9 MB / 0.5893 GB, free: 9.734 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3397/1.015, allocations: 55.01 MB / 0.643 GB, free: 102.7 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000872/1.016, allocations: 128 kB / 0.6431 GB, free: 102.6 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01689/1.033, allocations: 7.953 MB / 0.6509 GB, free: 96.6 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002762/1.035, allocations: 0.9641 MB / 0.6518 GB, free: 95.93 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001671/1.037, allocations: 0.5308 MB / 0.6523 GB, free: 95.62 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006966/1.044, allocations: 3.844 MB / 0.6561 GB, free: 92.48 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/1.044, allocations: 3.656 kB / 0.6561 GB, free: 92.48 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.074e-06/1.044, allocations: 0 / 0.6561 GB, free: 92.48 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.912e-05/1.044, allocations: 0 / 0.6561 GB, free: 92.48 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.006905/1.051, allocations: 3.029 MB / 0.659 GB, free: 89.65 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/1.051, allocations: 8.031 kB / 0.659 GB, free: 89.64 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007075/1.052, allocations: 347.2 kB / 0.6594 GB, free: 89.42 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008358/1.053, allocations: 304.6 kB / 0.6597 GB, free: 89.12 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002417/1.055, allocations: 1.525 MB / 0.6612 GB, free: 87.93 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000173/1.055, allocations: 217.9 kB / 0.6614 GB, free: 87.78 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002848/1.056, allocations: 198.3 kB / 0.6615 GB, free: 87.65 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00455/1.06, allocations: 3.299 MB / 0.6648 GB, free: 85.23 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.536e-05/1.06, allocations: 4.875 kB / 0.6648 GB, free: 85.22 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002053/1.06, allocations: 82.45 kB / 0.6649 GB, free: 85.2 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002547/1.061, allocations: 254 kB / 0.6651 GB, free: 84.99 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004354/1.065, allocations: 3.108 MB / 0.6681 GB, free: 82.92 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.01556/1.081, allocations: 13.82 MB / 0.6816 GB, free: 70.81 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0035/1.084, allocations: 2.216 MB / 0.6838 GB, free: 69.4 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001735/1.086, allocations: 1.356 MB / 0.6851 GB, free: 68.51 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007051/1.093, allocations: 5.877 MB / 0.6909 GB, free: 63.27 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.066e-05/1.093, allocations: 58.48 kB / 0.6909 GB, free: 63.22 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008115/1.094, allocations: 178.8 kB / 0.6911 GB, free: 63.07 MB / 478.1 MB Notification: Performance of pre-optimization done (n=171): time 3.126e-06/1.094, allocations: 0 / 0.6911 GB, free: 63.07 MB / 478.1 MB Notification: Performance of matching and sorting (n=197): time 0.01975/1.114, allocations: 9.289 MB / 0.7002 GB, free: 56.08 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.724e-05/1.114, allocations: 77.41 kB / 0.7002 GB, free: 55.99 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002271/1.116, allocations: 1.828 MB / 0.702 GB, free: 54.59 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002501/1.116, allocations: 60.39 kB / 0.7021 GB, free: 54.55 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005839/1.117, allocations: 1.076 MB / 0.7031 GB, free: 53.54 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004313/1.117, allocations: 0.6688 MB / 0.7038 GB, free: 52.88 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001396/1.117, allocations: 50.08 kB / 0.7038 GB, free: 52.83 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001103/1.118, allocations: 398.7 kB / 0.7042 GB, free: 52.44 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001595/1.119, allocations: 1.199 MB / 0.7054 GB, free: 51.23 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00181/1.121, allocations: 1.769 MB / 0.7071 GB, free: 49.23 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001849/1.123, allocations: 1.456 MB / 0.7085 GB, free: 47.79 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.687e-06/1.123, allocations: 4 kB / 0.7085 GB, free: 47.79 MB / 478.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.005818/1.129, allocations: 4.216 MB / 0.7126 GB, free: 43.66 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003076/1.129, allocations: 0.6048 MB / 0.7132 GB, free: 42.83 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.038e-05/1.129, allocations: 16 kB / 0.7132 GB, free: 42.81 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0116/1.141, allocations: 3.669 MB / 0.7168 GB, free: 39.16 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001287/1.142, allocations: 326 kB / 0.7171 GB, free: 38.86 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005478/1.147, allocations: 3.952 MB / 0.721 GB, free: 34.91 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002348/1.15, allocations: 183.7 kB / 0.7212 GB, free: 34.73 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002183/1.15, allocations: 120 kB / 0.7213 GB, free: 34.62 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/1.15, allocations: 0 / 0.7213 GB, free: 34.62 MB / 478.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00515/1.155, allocations: 3.797 MB / 0.725 GB, free: 30.93 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.562e-05/1.155, allocations: 16.97 kB / 0.725 GB, free: 30.91 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007901/1.163, allocations: 2.839 MB / 0.7278 GB, free: 28.08 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001467/1.165, allocations: 374 kB / 0.7281 GB, free: 27.74 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004221/1.169, allocations: 3.467 MB / 0.7315 GB, free: 24.26 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002217/1.171, allocations: 187.8 kB / 0.7317 GB, free: 24.07 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001972/1.171, allocations: 108 kB / 0.7318 GB, free: 23.97 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.001253/1.173, allocations: 0.7035 MB / 0.7325 GB, free: 23.28 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003486/1.173, allocations: 225.2 kB / 0.7327 GB, free: 23.05 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006296/1.179, allocations: 3.973 MB / 0.7366 GB, free: 19.09 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.277e-05/1.179, allocations: 24 kB / 0.7366 GB, free: 19.06 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.249e-05/1.179, allocations: 4 kB / 0.7366 GB, free: 19.06 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00474/1.184, allocations: 3.379 MB / 0.7399 GB, free: 15.6 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009654/1.194, allocations: 6.291 MB / 0.7461 GB, free: 9.285 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.32e-05/1.194, allocations: 5.125 kB / 0.7461 GB, free: 9.281 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001336/1.195, allocations: 322.8 kB / 0.7464 GB, free: 8.984 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003755/1.199, allocations: 1.237 MB / 0.7476 GB, free: 7.73 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002356/1.199, allocations: 71.95 kB / 0.7477 GB, free: 7.66 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007952/1.207, allocations: 10.44 MB / 0.7579 GB, free: 12.53 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/1.207, allocations: 7.984 kB / 0.7579 GB, free: 12.52 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00877/1.216, allocations: 5.175 MB / 0.7629 GB, free: 7.32 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001476/1.217, allocations: 0.6034 MB / 0.7635 GB, free: 6.695 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003619/1.218, allocations: 52.36 kB / 0.7636 GB, free: 6.645 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001381/1.219, allocations: 159.6 kB / 0.7637 GB, free: 6.488 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003928/1.22, allocations: 169.2 kB / 0.7639 GB, free: 6.324 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001947/1.22, allocations: 83.95 kB / 0.7639 GB, free: 6.242 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001917/1.222, allocations: 1.245 MB / 0.7652 GB, free: 4.977 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.222, allocations: 0 / 0.7652 GB, free: 4.977 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0048/1.227, allocations: 1.734 MB / 0.7669 GB, free: 3.242 MB / 494.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.01066/1.237, allocations: 6.63 MB / 0.7733 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.009817/1.247, allocations: 4.958 MB / 0.7782 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.446e-06/1.247, allocations: 0.875 kB / 0.7782 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.004068/1.251, allocations: 2.244 MB / 0.7804 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004647/1.256, allocations: 0.9914 MB / 0.7813 GB, free: 4.555 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2392/1.495, allocations: 19.54 MB / 0.8004 GB, free: 208.1 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001352/1.496, allocations: 1.878 MB / 0.8022 GB, free: 207.4 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003138/1.5, allocations: 0.9624 MB / 0.8032 GB, free: 207.3 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001234/1.501, allocations: 1.008 MB / 0.8042 GB, free: 207.3 MB / 0.4981 GB Notification: Performance of SimCode: time 1.212e-06/1.501, allocations: 0 / 0.8042 GB, free: 207.3 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1229/1.624, allocations: 93.3 MB / 0.8953 GB, free: 122.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001299/1.624, allocations: 209.3 kB / 0.8955 GB, free: 122.3 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.644/6.268, allocations: 0 / 0.8955 GB, free: 122.3 MB / 0.4981 GB (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