Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.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: translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8978/0.8978, allocations: 150.9 MB / 166 MB, free: 14.59 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003365/0.0003367, allocations: 15.97 kB / 204 MB, free: 10.07 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2214/0.2217, allocations: 31.33 MB / 235.4 MB, free: 5.703 MB / 190.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.Fluid.Examples.SimpleExamples.TestDiaphragm): time 1.819/2.041, allocations: 292.7 MB / 0.5157 GB, free: 14 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.6718/2.713, allocations: 191.1 MB / 0.7023 GB, free: 3.711 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004802/2.714, allocations: 6.219 kB / 0.7023 GB, free: 3.711 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/Diaphragm.mo:34:3-35:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/Diaphragm.mo:36:3-37:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0001784/2.714, allocations: 27.5 kB / 0.7023 GB, free: 3.711 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004089/2.714, allocations: 101.3 kB / 0.7024 GB, free: 3.711 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03421/2.748, allocations: 9.327 MB / 0.7115 GB, free: 3.621 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0007439/2.749, allocations: 380.8 kB / 0.7119 GB, free: 3.621 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002802/2.75, allocations: 193.4 kB / 0.7121 GB, free: 3.613 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002367/2.75, allocations: 149 kB / 0.7122 GB, free: 3.613 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002243/2.75, allocations: 172.1 kB / 0.7124 GB, free: 3.613 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.926e-05/2.75, allocations: 25.78 kB / 0.7124 GB, free: 3.613 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04783/2.798, allocations: 21.01 MB / 0.7329 GB, free: 3.492 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002/2.798, allocations: 61.95 kB / 0.733 GB, free: 3.492 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003816/2.799, allocations: 177 kB / 0.7332 GB, free: 3.492 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.04042/2.839, allocations: 10.51 MB / 0.7434 GB, free: 100 kB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 9.438e-06/2.839, allocations: 3.844 kB / 0.7434 GB, free: 100 kB / 0.5762 GB Notification: Performance of FrontEnd: time 3.647e-06/2.839, allocations: 0 / 0.7434 GB, free: 100 kB / 0.5762 GB Notification: Performance of Transformations before backend: time 3.112e-05/2.839, allocations: 3.219 kB / 0.7434 GB, free: 100 kB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.008757/2.848, allocations: 1.869 MB / 0.7453 GB, free: 14.88 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.505e-05/2.848, allocations: 10.25 kB / 0.7453 GB, free: 14.88 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001532/2.848, allocations: 42.22 kB / 0.7453 GB, free: 14.86 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004742/2.849, allocations: 293.2 kB / 0.7456 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.02e-05/2.849, allocations: 28.53 kB / 0.7456 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.416e-05/2.849, allocations: 35.62 kB / 0.7456 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007289/2.849, allocations: 385 kB / 0.746 GB, free: 14.45 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/2.849, allocations: 0.8125 kB / 0.746 GB, free: 14.45 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.245e-05/2.85, allocations: 13.78 kB / 0.746 GB, free: 14.45 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.289e-05/2.85, allocations: 11.31 kB / 0.746 GB, free: 14.45 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000498/2.85, allocations: 244 kB / 0.7463 GB, free: 14.42 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01046/2.86, allocations: 6.159 MB / 0.7523 GB, free: 9.156 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002619/2.861, allocations: 85.42 kB / 0.7524 GB, free: 9.121 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.796e-05/2.861, allocations: 26.52 kB / 0.7524 GB, free: 9.113 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3215/3.182, allocations: 154.7 MB / 0.9035 GB, free: 6.711 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.807e-05/3.183, allocations: 34.55 kB / 0.9035 GB, free: 6.668 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=7): time 3.637e-06/3.183, allocations: 4 kB / 0.9035 GB, free: 6.664 MB / 0.7481 GB Notification: Performance of matching and sorting (n=7): time 0.0009607/3.183, allocations: 249.6 kB / 0.9038 GB, free: 6.426 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.719e-05/3.184, allocations: 81.11 kB / 0.9038 GB, free: 6.328 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004515/3.184, allocations: 290.7 kB / 0.9041 GB, free: 6.094 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.079e-05/3.184, allocations: 25.7 kB / 0.9041 GB, free: 6.062 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001891/3.184, allocations: 234.1 kB / 0.9044 GB, free: 5.863 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 2.832e-05/3.184, allocations: 30.98 kB / 0.9044 GB, free: 5.836 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001107/3.184, allocations: 58.94 kB / 0.9044 GB, free: 5.793 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001435/3.185, allocations: 336.8 kB / 0.9048 GB, free: 5.465 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001243/3.185, allocations: 55.02 kB / 0.9048 GB, free: 5.43 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001845/3.185, allocations: 153.1 kB / 0.905 GB, free: 5.25 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002951/3.185, allocations: 216.6 kB / 0.9052 GB, free: 5.047 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/3.185, allocations: 0 / 0.9052 GB, free: 5.047 MB / 0.7481 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005626/3.186, allocations: 267.8 kB / 0.9054 GB, free: 4.848 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.298e-05/3.186, allocations: 8.469 kB / 0.9054 GB, free: 4.84 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/3.186, allocations: 8 kB / 0.9054 GB, free: 4.832 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001003/3.187, allocations: 106.1 kB / 0.9055 GB, free: 4.73 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001701/3.187, allocations: 44.7 kB / 0.9056 GB, free: 4.691 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005361/3.188, allocations: 0.5772 MB / 0.9062 GB, free: 4.113 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002486/3.188, allocations: 31.38 kB / 0.9062 GB, free: 4.086 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.361e-05/3.188, allocations: 10.45 kB / 0.9062 GB, free: 4.078 MB / 0.7481 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 (SourceP1.C.ftype,PuitsP1.fluid,Diaphragm.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,Diaphragm.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * 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 {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002209/3.188, allocations: 154.2 kB / 0.9063 GB, free: 3.941 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.751e-05/3.188, allocations: 27.66 kB / 0.9064 GB, free: 3.914 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006406/3.189, allocations: 178 kB / 0.9065 GB, free: 3.766 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/3.189, allocations: 4.031 kB / 0.9065 GB, free: 3.762 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/3.189, allocations: 4 kB / 0.9065 GB, free: 3.758 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/3.189, allocations: 0 / 0.9065 GB, free: 3.758 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004306/3.189, allocations: 307 kB / 0.9068 GB, free: 3.457 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/3.189, allocations: 4 kB / 0.9068 GB, free: 3.453 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.042e-05/3.189, allocations: 4 kB / 0.9068 GB, free: 3.449 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000689/3.19, allocations: 96.39 kB / 0.9069 GB, free: 3.359 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.22e-05/3.19, allocations: 0.5625 kB / 0.9069 GB, free: 3.359 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004969/3.191, allocations: 0.5706 MB / 0.9075 GB, free: 2.789 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/3.191, allocations: 0 / 0.9075 GB, free: 2.789 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005242/3.191, allocations: 168.5 kB / 0.9077 GB, free: 2.629 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001254/3.191, allocations: 109.5 kB / 0.9078 GB, free: 2.508 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.222e-05/3.191, allocations: 1.25 kB / 0.9078 GB, free: 2.508 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.599e-05/3.191, allocations: 5.25 kB / 0.9078 GB, free: 2.504 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.03e-05/3.191, allocations: 13.75 kB / 0.9078 GB, free: 2.492 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.859e-06/3.191, allocations: 4 kB / 0.9078 GB, free: 2.488 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002786/3.192, allocations: 207.5 kB / 0.908 GB, free: 2.32 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.41e-07/3.192, allocations: 0 / 0.908 GB, free: 2.32 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.005877/3.198, allocations: 1.605 MB / 0.9095 GB, free: 0.832 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (4): * Single equations (assignments): 3 * 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 {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01061/3.208, allocations: 2.554 MB / 0.912 GB, free: 14.66 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0006094/3.209, allocations: 138 kB / 0.9122 GB, free: 14.57 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/3.209, allocations: 0 / 0.9122 GB, free: 14.57 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001693/3.209, allocations: 44.06 kB / 0.9122 GB, free: 14.53 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005508/3.21, allocations: 71.31 kB / 0.9123 GB, free: 14.48 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0011/3.211, allocations: 0.5503 MB / 0.9128 GB, free: 13.93 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00042/3.211, allocations: 0.7674 MB / 0.9136 GB, free: 13.14 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0002004/3.211, allocations: 42.91 kB / 0.9136 GB, free: 13.1 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.622e-05/3.212, allocations: 31.42 kB / 0.9136 GB, free: 13.07 MB / 0.7637 GB Notification: Performance of SimCode: time 2.014e-06/3.212, allocations: 0 / 0.9136 GB, free: 13.07 MB / 0.7637 GB Notification: Performance of Templates: time 0.0849/3.296, allocations: 48.86 MB / 0.9614 GB, free: 12.29 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe 2>&1)