Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStodolaTurbine1.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.TestStodolaTurbine1,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestStodolaTurbine1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestStodolaTurbine1,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestStodolaTurbine1",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.7427/0.7427, allocations: 150.8 MB / 166.1 MB, free: 15.44 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.536e-05/1.537e-05, allocations: 4 kB / 204.9 MB, free: 9.957 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1237, allocations: 31.98 MB / 236.8 MB, free: 5.176 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.TestStodolaTurbine1): time 1.402/1.526, allocations: 296.9 MB / 0.5212 GB, free: 10.99 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4248/1.951, allocations: 197.8 MB / 0.7143 GB, free: 3.934 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005294/1.951, allocations: 16.44 kB / 0.7144 GB, free: 3.934 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0004768/1.952, allocations: 183.5 kB / 0.7145 GB, free: 3.93 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0008441/1.953, allocations: 319.9 kB / 0.7148 GB, free: 3.93 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02591/1.979, allocations: 11.5 MB / 0.7261 GB, free: 3.691 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001072/1.98, allocations: 1.195 MB / 0.7272 GB, free: 3.691 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00055/1.98, allocations: 493.8 kB / 0.7277 GB, free: 3.609 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006064/1.981, allocations: 446.1 kB / 0.7281 GB, free: 3.609 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005506/1.981, allocations: 459.3 kB / 0.7286 GB, free: 3.602 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001055/1.982, allocations: 37.59 kB / 0.7286 GB, free: 3.602 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03471/2.016, allocations: 26.17 MB / 0.7542 GB, free: 15.72 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.000251/2.017, allocations: 270.5 kB / 0.7544 GB, free: 15.66 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0005921/2.017, allocations: 0.588 MB / 0.755 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02111/2.038, allocations: 13.31 MB / 0.768 GB, free: 10.36 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/2.038, allocations: 7.688 kB / 0.768 GB, free: 10.36 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.253e-06/2.038, allocations: 0 / 0.768 GB, free: 10.36 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 3.54e-05/2.038, allocations: 0 / 0.768 GB, free: 10.36 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: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.006832/2.045, allocations: 2.939 MB / 0.7709 GB, free: 8.488 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/2.045, allocations: 11.72 kB / 0.7709 GB, free: 8.488 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001684/2.045, allocations: 158.8 kB / 0.771 GB, free: 8.418 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000209/2.046, allocations: 161.7 kB / 0.7712 GB, free: 8.336 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007052/2.046, allocations: 0.6491 MB / 0.7718 GB, free: 7.875 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001495/2.047, allocations: 143.2 kB / 0.772 GB, free: 7.801 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.997e-05/2.047, allocations: 83.97 kB / 0.772 GB, free: 7.801 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001591/2.048, allocations: 1.02 MB / 0.773 GB, free: 7.453 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.71e-05/2.048, allocations: 2.906 kB / 0.773 GB, free: 7.453 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.518e-05/2.048, allocations: 36.62 kB / 0.7731 GB, free: 7.453 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.815e-05/2.048, allocations: 32.45 kB / 0.7731 GB, free: 7.449 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001595/2.05, allocations: 0.8335 MB / 0.7739 GB, free: 7.312 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.1394/2.189, allocations: 66.53 MB / 0.8389 GB, free: 2.016 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001965/2.191, allocations: 0.7745 MB / 0.8396 GB, free: 1.402 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005698/2.192, allocations: 295.6 kB / 0.8399 GB, free: 1.215 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5406/2.733, allocations: 159.3 MB / 0.9955 GB, free: 229.8 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.441e-05/2.733, allocations: 38.5 kB / 0.9955 GB, free: 229.8 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=78): time 2.325e-06/2.733, allocations: 0 / 0.9955 GB, free: 229.8 MB / 0.8106 GB Notification: Performance of matching and sorting (n=78): time 0.007701/2.74, allocations: 2.538 MB / 0.998 GB, free: 229.3 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.99e-05/2.74, allocations: 53.88 kB / 0.9981 GB, free: 229.2 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001213/2.742, allocations: 1.115 MB / 0.9991 GB, free: 229.1 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.478e-05/2.742, allocations: 38.83 kB / 0.9992 GB, free: 229 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003176/2.742, allocations: 0.6302 MB / 0.9998 GB, free: 228.9 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001367/2.742, allocations: 262.1 kB / 1 GB, free: 228.7 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001006/2.742, allocations: 92.88 kB / 1 GB, free: 228.7 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 5.269e-05/2.742, allocations: 346.5 kB / 1 GB, free: 228.4 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006016/2.743, allocations: 308.5 kB / 1.001 GB, free: 228.4 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006659/2.744, allocations: 0.5327 MB / 1.001 GB, free: 228.1 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001186/2.745, allocations: 0.8615 MB / 1.002 GB, free: 227.8 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/2.745, allocations: 0 / 1.002 GB, free: 227.8 MB / 0.8106 GB Notification: Performance of matching and sorting (n=128) (initialization): time 0.00318/2.748, allocations: 1.477 MB / 1.004 GB, free: 227.6 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/2.748, allocations: 7.031 kB / 1.004 GB, free: 227.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/2.748, allocations: 8.562 kB / 1.004 GB, free: 227.6 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007116/2.755, allocations: 1.393 MB / 1.005 GB, free: 227.5 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003626/2.755, allocations: 107.7 kB / 1.005 GB, free: 227.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002108/2.758, allocations: 2.87 MB / 1.008 GB, free: 225.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006868/2.758, allocations: 141.7 kB / 1.008 GB, free: 225.4 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.211e-05/2.758, allocations: 35.08 kB / 1.008 GB, free: 225.4 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 12 (sourceP1.fluid1,sourceP1.C.ftype,sourceP.C.ftype,stodolaTurbine.fluid,puitsP.fluid,DynamicCentrifugalPump1.fluid,puitsP1.fluid,sourceP.fluid1,DynamicCentrifugalPump1.C2.diff_on_1,sourceP1.C.diff_on_2,stodolaTurbine.Cs.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 (65): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(3,21), (1,2), (1,2), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003481/2.759, allocations: 325.4 kB / 1.008 GB, free: 225.3 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001239/2.759, allocations: 124.2 kB / 1.008 GB, free: 225.2 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002318/2.761, allocations: 1.478 MB / 1.01 GB, free: 225 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001772/2.763, allocations: 1.103 MB / 1.011 GB, free: 224.9 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/2.763, allocations: 0 / 1.011 GB, free: 224.9 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/2.763, allocations: 5.828 kB / 1.011 GB, free: 224.9 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003789/2.767, allocations: 2.553 MB / 1.013 GB, free: 224.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/2.767, allocations: 0 / 1.013 GB, free: 224.4 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002115/2.767, allocations: 69.55 kB / 1.014 GB, free: 224.4 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005157/2.772, allocations: 1.255 MB / 1.015 GB, free: 224.4 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.862e-05/2.772, allocations: 15.52 kB / 1.015 GB, free: 224.4 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002062/2.774, allocations: 2.897 MB / 1.018 GB, free: 222.2 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/2.774, allocations: 2.203 kB / 1.018 GB, free: 222.2 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003035/2.777, allocations: 1.781 MB / 1.019 GB, free: 221.9 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002686/2.778, allocations: 262.9 kB / 1.02 GB, free: 221.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001014/2.778, allocations: 10.97 kB / 1.02 GB, free: 221.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004604/2.778, allocations: 47.42 kB / 1.02 GB, free: 221.8 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.501e-05/2.778, allocations: 46.08 kB / 1.02 GB, free: 221.8 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.271e-05/2.778, allocations: 23.27 kB / 1.02 GB, free: 221.8 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0007484/2.779, allocations: 0.7619 MB / 1.02 GB, free: 221.7 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/2.779, allocations: 0 / 1.02 GB, free: 221.7 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.004732/2.784, allocations: 2.225 MB / 1.023 GB, free: 221.6 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (Shaft1.delta) * 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 (44): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(3,24), (1,2), (1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01155/2.795, allocations: 5.336 MB / 1.028 GB, free: 220.4 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001791/2.797, allocations: 1.041 MB / 1.029 GB, free: 220.3 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/2.797, allocations: 0 / 1.029 GB, free: 220.3 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0009369/2.798, allocations: 0.5023 MB / 1.029 GB, free: 220.3 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001465/2.8, allocations: 313.1 kB / 1.03 GB, free: 220.2 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01545/2.815, allocations: 11.45 MB / 1.041 GB, free: 215.7 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005179/2.816, allocations: 1.199 MB / 1.042 GB, free: 215 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0004001/2.816, allocations: 95.42 kB / 1.042 GB, free: 215 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003884/2.816, allocations: 0.5276 MB / 1.043 GB, free: 215 MB / 0.8106 GB Notification: Performance of SimCode: time 5.81e-07/2.816, allocations: 0 / 1.043 GB, free: 215 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.976/6.793, allocations: 92.62 MB / 1.133 GB, free: 128.3 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001792/6.793, allocations: 288 kB / 1.133 GB, free: 127.9 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.781/13.57, allocations: 0 / 1.133 GB, free: 127.9 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStodolaTurbine1.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStodolaTurbine1.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStodolaTurbine1.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStodolaTurbine1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestStodolaTurbine1_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestStodolaTurbine1.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStodolaTurbine1.pipe 2>&1)