Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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.Examples.SimpleExamples.TestSteamEngine,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSteamEngine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestSteamEngine,fileNamePrefix="ThermoSysPro_ThermoSysPro_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.8148/0.8148, allocations: 150.9 MB / 166.5 MB, free: 14.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003115/0.0003116, allocations: 17.94 kB / 236.6 MB, free: 1.992 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05379/0.05412, allocations: 31.34 MB / 267.9 MB, free: 7.555 MB / 222.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestSteamEngine): time 1.537/1.591, allocations: 294.9 MB / 0.5497 GB, free: 12.81 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03115/1.622, allocations: 28.96 MB / 0.5779 GB, free: 15.74 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002053/1.622, allocations: 0 / 0.5779 GB, free: 15.74 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Machines/SteamEngine.mo:35:3-37:17:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Machines/SteamEngine.mo:38:3-39:44:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0005185/1.623, allocations: 191 kB / 0.5781 GB, free: 15.55 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002218/1.623, allocations: 127 kB / 0.5783 GB, free: 15.43 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:783:9-783:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:850:9-850:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1088:9-1088:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1445:9-1445:35:writable] Warning: h was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.02212/1.645, allocations: 9.561 MB / 0.5876 GB, free: 5.859 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005974/1.646, allocations: 430.1 kB / 0.588 GB, free: 5.438 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002104/1.646, allocations: 120.6 kB / 0.5881 GB, free: 5.324 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001916/1.646, allocations: 179.2 kB / 0.5883 GB, free: 5.148 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001755/1.646, allocations: 139.3 kB / 0.5884 GB, free: 5.012 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.711e-05/1.646, allocations: 16 kB / 0.5884 GB, free: 4.996 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03041/1.677, allocations: 20.52 MB / 0.6085 GB, free: 460 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001034/1.677, allocations: 51.78 kB / 0.6085 GB, free: 408 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002032/1.677, allocations: 159.2 kB / 0.6087 GB, free: 248 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01658/1.694, allocations: 8.58 MB / 0.6171 GB, free: 7.645 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/1.694, allocations: 0 / 0.6171 GB, free: 7.645 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.893e-06/1.694, allocations: 0 / 0.6171 GB, free: 7.645 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.408e-05/1.694, allocations: 0 / 0.6171 GB, free: 7.645 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 95 * Number of variables: 95 Notification: Performance of Generate backend data structure: time 0.00399/1.698, allocations: 1.41 MB / 0.6184 GB, free: 6.188 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/1.698, allocations: 8.031 kB / 0.6184 GB, free: 6.18 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.28e-05/1.698, allocations: 70.7 kB / 0.6185 GB, free: 6.102 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.733e-05/1.698, allocations: 36.47 kB / 0.6185 GB, free: 6.066 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002111/1.698, allocations: 231.9 kB / 0.6188 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.813e-05/1.698, allocations: 20.38 kB / 0.6188 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.575e-05/1.698, allocations: 20 kB / 0.6188 GB, free: 5.762 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004334/1.699, allocations: 349.1 kB / 0.6191 GB, free: 5.395 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/1.699, allocations: 0 / 0.6191 GB, free: 5.395 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.136e-05/1.699, allocations: 12 kB / 0.6191 GB, free: 5.383 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.543e-05/1.699, allocations: 15.92 kB / 0.6192 GB, free: 5.367 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002646/1.699, allocations: 220.6 kB / 0.6194 GB, free: 5.152 MB / 0.4981 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.01843/1.718, allocations: 9.942 MB / 0.6291 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002154/1.718, allocations: 147.1 kB / 0.6292 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001216/1.718, allocations: 121.7 kB / 0.6293 GB, free: 9.922 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1092/1.827, allocations: 52.01 MB / 0.6801 GB, free: 0.9727 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.294e-05/1.827, allocations: 30.56 kB / 0.6802 GB, free: 0.9336 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=52): time 2.295e-06/1.827, allocations: 0 / 0.6802 GB, free: 0.9336 MB / 0.5606 GB Notification: Performance of matching and sorting (n=52): time 0.00116/1.828, allocations: 0.5172 MB / 0.6807 GB, free: 396 kB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.686e-05/1.828, allocations: 51.41 kB / 0.6807 GB, free: 332 kB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002554/1.829, allocations: 238 kB / 0.6809 GB, free: 80 kB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.789e-05/1.829, allocations: 25.7 kB / 0.681 GB, free: 48 kB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/1.829, allocations: 145 kB / 0.6811 GB, free: 15.9 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001129/1.829, allocations: 161.4 kB / 0.6813 GB, free: 15.74 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.2e-05/1.829, allocations: 61.69 kB / 0.6813 GB, free: 15.67 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.00012/1.829, allocations: 342.8 kB / 0.6816 GB, free: 15.33 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001205/1.829, allocations: 76.55 kB / 0.6817 GB, free: 15.25 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001598/1.829, allocations: 149.3 kB / 0.6819 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003094/1.83, allocations: 278.5 kB / 0.6821 GB, free: 14.8 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/1.83, allocations: 0 / 0.6821 GB, free: 14.8 MB / 0.5762 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0005156/1.83, allocations: 349.7 kB / 0.6825 GB, free: 14.45 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/1.83, allocations: 8.188 kB / 0.6825 GB, free: 14.44 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/1.83, allocations: 0 / 0.6825 GB, free: 14.44 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002916/1.831, allocations: 108.8 kB / 0.6826 GB, free: 14.33 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.113e-05/1.831, allocations: 11.98 kB / 0.6826 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004928/1.831, allocations: 0.6146 MB / 0.6832 GB, free: 13.68 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001294/1.831, allocations: 35.53 kB / 0.6832 GB, free: 13.64 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.845e-05/1.831, allocations: 12.06 kB / 0.6832 GB, free: 13.63 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 4 (sourceP.C.b,puitsP.C.a,steamEngine1.C2.b,steamEngine1.C1.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0001439/1.831, allocations: 146.2 kB / 0.6834 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.408e-05/1.832, allocations: 27.62 kB / 0.6834 GB, free: 13.45 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008586/1.832, allocations: 0.7885 MB / 0.6842 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004874/1.833, allocations: 392.3 kB / 0.6845 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/1.833, allocations: 0 / 0.6845 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/1.833, allocations: 3.984 kB / 0.6845 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00165/1.835, allocations: 1.475 MB / 0.686 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.702e-06/1.835, allocations: 4 kB / 0.686 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001708/1.835, allocations: 67.91 kB / 0.686 GB, free: 10.55 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001622/1.835, allocations: 89.41 kB / 0.6861 GB, free: 10.46 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.154e-05/1.835, allocations: 20 kB / 0.6861 GB, free: 10.44 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004002/1.835, allocations: 0.6302 MB / 0.6868 GB, free: 9.785 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.915e-06/1.835, allocations: 11.98 kB / 0.6868 GB, free: 9.773 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006305/1.836, allocations: 0.6403 MB / 0.6874 GB, free: 9.051 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.661e-05/1.836, allocations: 124.6 kB / 0.6875 GB, free: 8.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.458e-05/1.836, allocations: 31.75 kB / 0.6875 GB, free: 8.879 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001655/1.836, allocations: 8 kB / 0.6876 GB, free: 8.871 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.463e-05/1.836, allocations: 47.92 kB / 0.6876 GB, free: 8.824 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.019e-05/1.836, allocations: 19.94 kB / 0.6876 GB, free: 8.805 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002745/1.837, allocations: 291 kB / 0.6879 GB, free: 8.523 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/1.837, allocations: 0 / 0.6879 GB, free: 8.523 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003384/1.84, allocations: 1.331 MB / 0.6892 GB, free: 7.191 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * 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 (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.006453/1.847, allocations: 2.72 MB / 0.6919 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007508/1.847, allocations: 0.4885 MB / 0.6923 GB, free: 3.863 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/1.847, allocations: 4 kB / 0.6923 GB, free: 3.859 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002961/1.848, allocations: 201 kB / 0.6925 GB, free: 3.664 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001119/1.849, allocations: 209.8 kB / 0.6927 GB, free: 3.461 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005991/1.855, allocations: 4.151 MB / 0.6968 GB, free: 15.06 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005127/1.855, allocations: 0.84 MB / 0.6976 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001977/1.856, allocations: 46.94 kB / 0.6976 GB, free: 14.14 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002031/1.856, allocations: 159.3 kB / 0.6978 GB, free: 13.99 MB / 0.5919 GB Notification: Performance of SimCode: time 6.31e-07/1.856, allocations: 0 / 0.6978 GB, free: 13.99 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2736/2.129, allocations: 59.91 MB / 0.7563 GB, free: 185.9 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.65/16.78, allocations: 12.62 kB / 0.7563 GB, free: 185.9 MB / 0.5919 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSteamEngine_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSteamEngine.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.pipe 2>&1)