Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestSteamEngine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestSteamEngine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7498/0.7498, allocations: 150.8 MB / 166.1 MB, free: 15.21 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.829e-05/1.84e-05, allocations: 4 kB / 204.9 MB, free: 9.598 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1317, allocations: 31.99 MB / 236.8 MB, free: 5.5 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine): time 1.478/1.61, allocations: 295 MB / 0.5194 GB, free: 12.8 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4607/2.071, allocations: 195.7 MB / 0.7105 GB, free: 4.043 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002965/2.071, allocations: 8.125 kB / 0.7105 GB, free: 4.043 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0004451/2.072, allocations: 144.1 kB / 0.7107 GB, free: 4.043 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004026/2.072, allocations: 143.9 kB / 0.7108 GB, free: 4.043 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0279/2.1, allocations: 11.03 MB / 0.7216 GB, free: 3.906 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005392/2.1, allocations: 492.4 kB / 0.722 GB, free: 3.906 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002574/2.101, allocations: 186.3 kB / 0.7222 GB, free: 3.887 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002688/2.101, allocations: 176.9 kB / 0.7224 GB, free: 3.887 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002209/2.101, allocations: 168.5 kB / 0.7225 GB, free: 3.887 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.482e-05/2.101, allocations: 16.47 kB / 0.7226 GB, free: 3.887 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03703/2.138, allocations: 25.71 MB / 0.7477 GB, free: 0.8711 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 9.955e-05/2.138, allocations: 56.5 kB / 0.7477 GB, free: 0.8633 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002285/2.139, allocations: 216.5 kB / 0.7479 GB, free: 0.8242 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02127/2.16, allocations: 12.28 MB / 0.7599 GB, free: 12.08 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/2.16, allocations: 0 / 0.7599 GB, free: 12.08 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.593e-06/2.16, allocations: 0 / 0.7599 GB, free: 12.08 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.165e-05/2.16, allocations: 4 kB / 0.7599 GB, free: 12.07 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.00512/2.165, allocations: 2.036 MB / 0.7619 GB, free: 10.75 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/2.165, allocations: 11.56 kB / 0.7619 GB, free: 10.75 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.789e-05/2.165, allocations: 77.77 kB / 0.762 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.977e-05/2.165, allocations: 49.47 kB / 0.762 GB, free: 10.68 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003342/2.166, allocations: 309.1 kB / 0.7623 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.91e-05/2.166, allocations: 26.47 kB / 0.7624 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.541e-05/2.166, allocations: 39.34 kB / 0.7624 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005475/2.166, allocations: 427.2 kB / 0.7628 GB, free: 10.26 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/2.166, allocations: 2.906 kB / 0.7628 GB, free: 10.26 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.622e-05/2.166, allocations: 17.56 kB / 0.7628 GB, free: 10.26 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.549e-05/2.166, allocations: 11.62 kB / 0.7628 GB, free: 10.26 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003926/2.167, allocations: 267 kB / 0.7631 GB, free: 10.23 MB / 0.5919 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.07073/2.238, allocations: 33.16 MB / 0.7955 GB, free: 11.68 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001835/2.238, allocations: 106.8 kB / 0.7956 GB, free: 11.61 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001014/2.238, allocations: 81.41 kB / 0.7957 GB, free: 11.57 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1325/2.37, allocations: 80.94 MB / 0.8747 GB, free: 1.359 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.079e-05/2.37, allocations: 34.56 kB / 0.8747 GB, free: 1.316 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=34): time 2.144e-06/2.37, allocations: 0 / 0.8747 GB, free: 1.316 MB / 0.7012 GB Notification: Performance of matching and sorting (n=34): time 0.0008625/2.371, allocations: 430.1 kB / 0.8752 GB, free: 0.9648 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.417e-05/2.371, allocations: 55.41 kB / 0.8752 GB, free: 0.8984 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003179/2.372, allocations: 300.6 kB / 0.8755 GB, free: 0.6602 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 1.713e-05/2.372, allocations: 29.7 kB / 0.8755 GB, free: 0.625 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001269/2.372, allocations: 234.7 kB / 0.8757 GB, free: 440 kB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 6.853e-05/2.372, allocations: 109.9 kB / 0.8759 GB, free: 344 kB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.902e-05/2.372, allocations: 43.62 kB / 0.8759 GB, free: 308 kB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001051/2.372, allocations: 342.8 kB / 0.8762 GB, free: 15.97 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001337/2.372, allocations: 83.56 kB / 0.8763 GB, free: 15.92 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000184/2.372, allocations: 188.1 kB / 0.8765 GB, free: 15.73 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003294/2.373, allocations: 293.1 kB / 0.8768 GB, free: 15.49 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/2.373, allocations: 0 / 0.8768 GB, free: 15.49 MB / 0.7169 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000577/2.373, allocations: 380 kB / 0.8771 GB, free: 15.23 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/2.373, allocations: 8 kB / 0.8771 GB, free: 15.22 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/2.373, allocations: 4 kB / 0.8771 GB, free: 15.21 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002548/2.374, allocations: 109.2 kB / 0.8772 GB, free: 15.12 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001426/2.374, allocations: 43.64 kB / 0.8773 GB, free: 15.08 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004049/2.374, allocations: 0.6073 MB / 0.8779 GB, free: 14.49 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001906/2.374, allocations: 42.88 kB / 0.8779 GB, free: 14.45 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.388e-05/2.374, allocations: 19.36 kB / 0.8779 GB, free: 14.44 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 6 (sourceP.fluid1,sourceP.C.ftype,steamEngine1.fluid,puitsP.fluid,steamEngine1.C2.diff_on_1,sourceP.C.diff_on_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001459/2.375, allocations: 158.3 kB / 0.8781 GB, free: 14.3 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.108e-05/2.375, allocations: 31.56 kB / 0.8781 GB, free: 14.27 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006375/2.375, allocations: 0.5627 MB / 0.8787 GB, free: 13.9 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004492/2.376, allocations: 404.2 kB / 0.879 GB, free: 13.62 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/2.376, allocations: 0 / 0.879 GB, free: 13.62 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/2.376, allocations: 4 kB / 0.879 GB, free: 13.61 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001302/2.377, allocations: 1.184 MB / 0.8802 GB, free: 12.66 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/2.377, allocations: 0 / 0.8802 GB, free: 12.66 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000132/2.377, allocations: 56.78 kB / 0.8803 GB, free: 12.61 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001872/2.377, allocations: 114.9 kB / 0.8804 GB, free: 12.51 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.528e-05/2.377, allocations: 7.938 kB / 0.8804 GB, free: 12.51 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003689/2.378, allocations: 0.6326 MB / 0.881 GB, free: 11.9 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/2.378, allocations: 0 / 0.881 GB, free: 11.9 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005422/2.378, allocations: 0.5344 MB / 0.8815 GB, free: 11.47 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001253/2.379, allocations: 152.8 kB / 0.8817 GB, free: 11.31 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.855e-05/2.379, allocations: 8.625 kB / 0.8817 GB, free: 11.31 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001365/2.379, allocations: 4.125 kB / 0.8817 GB, free: 11.31 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.465e-05/2.379, allocations: 26.47 kB / 0.8817 GB, free: 11.29 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.472e-05/2.379, allocations: 10.44 kB / 0.8817 GB, free: 11.28 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001984/2.379, allocations: 220.2 kB / 0.8819 GB, free: 11.11 MB / 0.7169 GB Notification: Performance of sort global known variables: time 8.62e-07/2.379, allocations: 0 / 0.8819 GB, free: 11.11 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.004635/2.384, allocations: 2.034 MB / 0.8839 GB, free: 9.199 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009872/2.394, allocations: 4.001 MB / 0.8878 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000647/2.394, allocations: 435.8 kB / 0.8882 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/2.394, allocations: 0.9375 kB / 0.8882 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002615/2.394, allocations: 194.3 kB / 0.8884 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001103/2.396, allocations: 200.8 kB / 0.8886 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006254/2.402, allocations: 4.299 MB / 0.8928 GB, free: 1.141 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003604/2.402, allocations: 0.8511 MB / 0.8936 GB, free: 272 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0002321/2.402, allocations: 58.88 kB / 0.8937 GB, free: 212 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001636/2.403, allocations: 168.5 kB / 0.8939 GB, free: 160 kB / 0.7169 GB Notification: Performance of SimCode: time 3.5e-07/2.403, allocations: 4 kB / 0.8939 GB, free: 156 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.614/5.017, allocations: 75.96 MB / 0.968 GB, free: 4.43 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002562/5.017, allocations: 294.1 kB / 0.9683 GB, free: 4.047 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.746/11.76, allocations: 64 / 0.9683 GB, free: 4.047 MB / 0.795 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestSteamEngine_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestSteamEngine.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine.pipe 2>&1)