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.0009689/0.0009693, allocations: 91.88 kB / 16.65 MB, free: 6.586 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.001077/0.001077, allocations: 182 kB / 17.56 MB, free: 6.203 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.376/1.376, allocations: 223.3 MB / 241.6 MB, free: 100 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004026/0.0004026, allocations: 8 kB / 301.5 MB, free: 6.012 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1047, allocations: 50.41 MB / 351.9 MB, free: 3.598 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.3047/0.4095, allocations: 93.76 MB / 445.7 MB, free: 6.832 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03931/0.4489, allocations: 22.31 MB / 468 MB, free: 488 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003593/0.4525, allocations: 107.1 kB / 468.1 MB, free: 380 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002791/0.4553, allocations: 0.8239 MB / 468.9 MB, free: 15.54 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01015/0.4655, allocations: 3.509 MB / 472.4 MB, free: 12.02 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01396/0.4795, allocations: 4.942 MB / 477.4 MB, free: 7.078 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01284/0.4924, allocations: 10.7 MB / 488.1 MB, free: 12.37 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003588/0.496, allocations: 1.577 MB / 489.6 MB, free: 10.76 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4096/0.9056, allocations: 73.4 MB / 0.5498 GB, free: 53.49 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05611/0.9618, allocations: 31.95 MB / 0.581 GB, free: 43.7 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000988/0.9629, allocations: 130.3 kB / 0.5812 GB, free: 43.7 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0129/0.9758, allocations: 5.951 MB / 0.587 GB, free: 41.72 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001868/0.9777, allocations: 0.9733 MB / 0.5879 GB, free: 41.42 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002343/0.9801, allocations: 1.382 MB / 0.5893 GB, free: 41.28 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007976/0.9881, allocations: 5.316 MB / 0.5945 GB, free: 37.25 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.523e-05/0.9881, allocations: 0 / 0.5945 GB, free: 37.25 MB / 446.1 MB Notification: Performance of FrontEnd: time 8.035e-06/0.9882, allocations: 0 / 0.5945 GB, free: 37.25 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001172/0.9883, allocations: 0 / 0.5945 GB, free: 37.25 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.00706/0.9954, allocations: 2.992 MB / 0.5974 GB, free: 34.51 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.9954, allocations: 12.03 kB / 0.5974 GB, free: 34.5 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005886/0.996, allocations: 338.9 kB / 0.5977 GB, free: 34.28 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007643/0.9968, allocations: 308.6 kB / 0.598 GB, free: 33.98 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002343/0.9992, allocations: 1.588 MB / 0.5996 GB, free: 32.73 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002386/0.9994, allocations: 215.2 kB / 0.5998 GB, free: 32.57 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002935/0.9997, allocations: 198.5 kB / 0.6 GB, free: 32.44 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004483/1.004, allocations: 3.317 MB / 0.6032 GB, free: 30 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.035e-05/1.004, allocations: 10.91 kB / 0.6032 GB, free: 29.99 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002191/1.005, allocations: 79.52 kB / 0.6033 GB, free: 29.97 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002518/1.005, allocations: 251.4 kB / 0.6035 GB, free: 29.76 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004523/1.009, allocations: 3.124 MB / 0.6066 GB, free: 27.68 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.01754/1.027, allocations: 13.82 MB / 0.6201 GB, free: 15.56 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003749/1.031, allocations: 2.23 MB / 0.6223 GB, free: 14.14 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001988/1.033, allocations: 1.361 MB / 0.6236 GB, free: 13.24 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007489/1.04, allocations: 5.868 MB / 0.6293 GB, free: 7.785 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.111e-05/1.04, allocations: 52.56 kB / 0.6294 GB, free: 7.727 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007744/1.041, allocations: 184.9 kB / 0.6296 GB, free: 7.547 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 5.039e-06/1.041, allocations: 0 / 0.6296 GB, free: 7.547 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.02186/1.063, allocations: 9.23 MB / 0.6386 GB, free: 14.25 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.861e-05/1.063, allocations: 69.41 kB / 0.6386 GB, free: 14.16 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003251/1.066, allocations: 1.849 MB / 0.6404 GB, free: 12.27 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002169/1.066, allocations: 61.7 kB / 0.6405 GB, free: 12.21 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009627/1.067, allocations: 1.063 MB / 0.6415 GB, free: 11.14 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007057/1.068, allocations: 0.6785 MB / 0.6422 GB, free: 10.46 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003767/1.069, allocations: 190.4 kB / 0.6424 GB, free: 10.27 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001646/1.069, allocations: 305.1 kB / 0.6427 GB, free: 9.973 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002103/1.071, allocations: 1.226 MB / 0.6439 GB, free: 8.742 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002695/1.074, allocations: 1.803 MB / 0.6456 GB, free: 6.703 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004583/1.078, allocations: 3.178 MB / 0.6487 GB, free: 3.359 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.186e-05/1.078, allocations: 7.844 kB / 0.6487 GB, free: 3.355 MB / 462.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007653/1.086, allocations: 4.296 MB / 0.6529 GB, free: 15.15 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004862/1.086, allocations: 0.6032 MB / 0.6535 GB, free: 14.32 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.106e-05/1.086, allocations: 16 kB / 0.6535 GB, free: 14.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01456/1.101, allocations: 3.657 MB / 0.6571 GB, free: 10.66 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/1.102, allocations: 331.5 kB / 0.6574 GB, free: 10.36 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006777/1.109, allocations: 3.96 MB / 0.6613 GB, free: 6.402 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002353/1.111, allocations: 191.7 kB / 0.6615 GB, free: 6.215 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002824/1.112, allocations: 112 kB / 0.6616 GB, free: 6.105 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.103e-05/1.112, allocations: 4 kB / 0.6616 GB, free: 6.102 MB / 478.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006566/1.118, allocations: 3.814 MB / 0.6653 GB, free: 2.395 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.219e-05/1.118, allocations: 23.94 kB / 0.6653 GB, free: 2.371 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01019/1.129, allocations: 2.871 MB / 0.6681 GB, free: 15.52 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00158/1.13, allocations: 378.9 kB / 0.6685 GB, free: 15.17 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00579/1.136, allocations: 3.475 MB / 0.6719 GB, free: 11.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002524/1.138, allocations: 191.6 kB / 0.6721 GB, free: 11.51 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002872/1.139, allocations: 108 kB / 0.6722 GB, free: 11.41 MB / 494.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.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.001567/1.14, allocations: 0.7015 MB / 0.6729 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005605/1.141, allocations: 221.3 kB / 0.6731 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00818/1.149, allocations: 3.977 MB / 0.677 GB, free: 6.535 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.114e-05/1.149, allocations: 24 kB / 0.677 GB, free: 6.512 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.589e-05/1.149, allocations: 0 / 0.677 GB, free: 6.512 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005974/1.155, allocations: 3.402 MB / 0.6803 GB, free: 3.035 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01142/1.167, allocations: 6.321 MB / 0.6865 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/1.167, allocations: 4 kB / 0.6865 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0014/1.168, allocations: 319.1 kB / 0.6868 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00503/1.173, allocations: 1.225 MB / 0.688 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002049/1.173, allocations: 75.95 kB / 0.6881 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01011/1.183, allocations: 10.46 MB / 0.6983 GB, free: 15.94 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/1.183, allocations: 8.062 kB / 0.6983 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009338/1.193, allocations: 5.2 MB / 0.7034 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001518/1.194, allocations: 0.6071 MB / 0.7039 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005252/1.195, allocations: 51.98 kB / 0.704 GB, free: 10.02 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001847/1.197, allocations: 143.7 kB / 0.7041 GB, free: 9.883 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003881/1.197, allocations: 165.8 kB / 0.7043 GB, free: 9.723 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002054/1.197, allocations: 83.95 kB / 0.7044 GB, free: 9.641 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.002159/1.199, allocations: 1.26 MB / 0.7056 GB, free: 8.359 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.11e-07/1.199, allocations: 0 / 0.7056 GB, free: 8.359 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005163/1.205, allocations: 1.745 MB / 0.7073 GB, free: 6.613 MB / 0.5137 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.1847/1.389, allocations: 6.662 MB / 0.7138 GB, free: 232 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01288/1.402, allocations: 5.039 MB / 0.7187 GB, free: 231.8 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.265e-06/1.402, allocations: 5 kB / 0.7187 GB, free: 231.8 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004678/1.407, allocations: 2.243 MB / 0.7209 GB, free: 231 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004807/1.412, allocations: 0.9928 MB / 0.7219 GB, free: 230.7 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03985/1.452, allocations: 27.84 MB / 0.7491 GB, free: 215.2 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001218/1.453, allocations: 1.879 MB / 0.7509 GB, free: 213.4 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003247/1.456, allocations: 0.9617 MB / 0.7519 GB, free: 212.4 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001098/1.457, allocations: 1.011 MB / 0.7528 GB, free: 211.4 MB / 0.5137 GB Notification: Performance of SimCode: time 7.51e-07/1.457, allocations: 0 / 0.7528 GB, free: 211.4 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7572/2.215, allocations: 94.1 MB / 0.8447 GB, free: 117.8 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001787/2.215, allocations: 220.7 kB / 0.845 GB, free: 117.5 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.893/7.108, allocations: 0 / 0.845 GB, free: 117.5 MB / 0.5137 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/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