Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.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.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8461/0.8461, allocations: 150.8 MB / 166.1 MB, free: 15.44 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.598e-05/1.6e-05, allocations: 4 kB / 204.8 MB, free: 10.07 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1753/0.1753, allocations: 31.98 MB / 236.8 MB, free: 5.461 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.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve): time 1.73/1.906, allocations: 296.4 MB / 0.5206 GB, free: 10.74 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.5801/2.486, allocations: 195.1 MB / 0.7112 GB, free: 3.875 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001132/2.487, allocations: 19.69 kB / 0.7112 GB, free: 3.875 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0007287/2.488, allocations: 160.7 kB / 0.7114 GB, free: 3.875 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002189/2.49, allocations: 479.3 kB / 0.7118 GB, free: 3.871 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03837/2.528, allocations: 11.13 MB / 0.7227 GB, free: 3.676 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002229/2.531, allocations: 1.525 MB / 0.7242 GB, free: 3.668 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007913/2.531, allocations: 0.623 MB / 0.7248 GB, free: 3.59 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006622/2.532, allocations: 0.5139 MB / 0.7253 GB, free: 3.59 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006251/2.533, allocations: 0.624 MB / 0.7259 GB, free: 3.59 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.91e-05/2.533, allocations: 60 kB / 0.726 GB, free: 3.59 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04317/2.576, allocations: 22.96 MB / 0.7484 GB, free: 1.172 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000669/2.577, allocations: 256.4 kB / 0.7486 GB, free: 1.117 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001416/2.578, allocations: 0.6365 MB / 0.7493 GB, free: 1.039 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.03629/2.614, allocations: 12.54 MB / 0.7615 GB, free: 12.45 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/2.614, allocations: 0 / 0.7615 GB, free: 12.45 MB / 0.5919 GB Notification: Performance of FrontEnd: time 3.848e-06/2.614, allocations: 0 / 0.7615 GB, free: 12.45 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 9.727e-05/2.615, allocations: 1.969 kB / 0.7615 GB, free: 12.45 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: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.008544/2.623, allocations: 2.802 MB / 0.7642 GB, free: 10.64 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.258e-05/2.623, allocations: 12.03 kB / 0.7643 GB, free: 10.64 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005061/2.624, allocations: 165.4 kB / 0.7644 GB, free: 10.56 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001358/2.625, allocations: 0.648 MB / 0.7651 GB, free: 10.14 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001699/2.625, allocations: 122 kB / 0.7652 GB, free: 10.11 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003531/2.626, allocations: 130.5 kB / 0.7653 GB, free: 10.1 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002652/2.628, allocations: 1.372 MB / 0.7666 GB, free: 9.586 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.519e-05/2.628, allocations: 6.719 kB / 0.7666 GB, free: 9.586 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001054/2.628, allocations: 53.62 kB / 0.7667 GB, free: 9.582 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.91e-05/2.628, allocations: 31.78 kB / 0.7667 GB, free: 9.582 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001999/2.63, allocations: 1.171 MB / 0.7679 GB, free: 9.43 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.02238/2.653, allocations: 15.81 MB / 0.7833 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00162/2.655, allocations: 0.8775 MB / 0.7842 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005233/2.655, allocations: 300.8 kB / 0.7844 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.81/3.465, allocations: 290.8 MB / 1.068 GB, free: 390 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007908/3.466, allocations: 389.2 kB / 1.069 GB, free: 389.7 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=59): time 2.625e-06/3.466, allocations: 0 / 1.069 GB, free: 389.7 MB / 0.8106 GB Notification: Performance of matching and sorting (n=59): time 0.003814/3.47, allocations: 1.332 MB / 1.07 GB, free: 388.6 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.015e-05/3.47, allocations: 91.5 kB / 1.07 GB, free: 388.5 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001088/3.471, allocations: 0.8487 MB / 1.071 GB, free: 387.9 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.355e-05/3.471, allocations: 41.52 kB / 1.071 GB, free: 387.8 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003166/3.471, allocations: 0.6089 MB / 1.072 GB, free: 387.4 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001448/3.471, allocations: 207.7 kB / 1.072 GB, free: 387.2 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001273/3.472, allocations: 106.7 kB / 1.072 GB, free: 387.2 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001067/3.472, allocations: 395.4 kB / 1.072 GB, free: 386.8 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004836/3.472, allocations: 293.9 kB / 1.073 GB, free: 386.6 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005945/3.473, allocations: 0.6776 MB / 1.073 GB, free: 385.9 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001105/3.474, allocations: 1.004 MB / 1.074 GB, free: 384.9 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.12e-05/3.474, allocations: 7.656 kB / 1.074 GB, free: 384.9 MB / 0.8106 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001926/3.476, allocations: 1.174 MB / 1.075 GB, free: 384 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.763e-05/3.476, allocations: 11.12 kB / 1.075 GB, free: 384 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.841e-05/3.476, allocations: 12 kB / 1.075 GB, free: 384 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002659/3.479, allocations: 0.5601 MB / 1.076 GB, free: 383.5 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000668/3.479, allocations: 205.5 kB / 1.076 GB, free: 383.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009041/3.48, allocations: 0.8578 MB / 1.077 GB, free: 382.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008276/3.481, allocations: 138.7 kB / 1.077 GB, free: 382.4 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.794e-05/3.481, allocations: 55.19 kB / 1.077 GB, free: 382.4 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 22 (sourceP.fluid1,sourceP.C.ftype,VolumeD1.Cs1.ftype,VolumeD1.Cs3.ftype,VolumeD1.Cs2.ftype,VolumeD1.fluids[1],ReliefValve.fluid,Pipe2.fluid,Sink2.fluid,Pipe1.fluid,Sink1.fluid,ReliefValve.clapper_is_free,$whenCondition1,$whenCondition2,VolumeD1.fluid1,ReliefValve.C1.diff_on_2,VolumeD1.Cs3.diff_on_1,VolumeD1.Cs2.diff_on_1,VolumeD1.Cs1.diff_on_1,ReliefValve.C2.diff_on_1,VolumeD1.Ce.diff_on_2,VolumeD1.Cs2.diff_on_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (110): * Single equations (assignments): 109 * 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 {(4,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0004688/3.482, allocations: 306.3 kB / 1.077 GB, free: 382.1 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001506/3.482, allocations: 94.78 kB / 1.078 GB, free: 382.1 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001607/3.483, allocations: 0.8703 MB / 1.078 GB, free: 381.4 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/3.483, allocations: 8 kB / 1.078 GB, free: 381.4 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/3.483, allocations: 3.938 kB / 1.078 GB, free: 381.4 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/3.483, allocations: 3.984 kB / 1.078 GB, free: 381.4 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002716/3.486, allocations: 1.905 MB / 1.08 GB, free: 379.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/3.486, allocations: 0 / 1.08 GB, free: 379.9 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004604/3.487, allocations: 109.9 kB / 1.08 GB, free: 379.8 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001821/3.488, allocations: 405.9 kB / 1.081 GB, free: 379.4 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.685e-05/3.488, allocations: 17.16 kB / 1.081 GB, free: 379.4 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007165/3.489, allocations: 0.793 MB / 1.082 GB, free: 378.7 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/3.489, allocations: 3.375 kB / 1.082 GB, free: 378.7 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001918/3.491, allocations: 1.244 MB / 1.083 GB, free: 377.8 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003534/3.492, allocations: 242.4 kB / 1.083 GB, free: 377.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001507/3.492, allocations: 15.69 kB / 1.083 GB, free: 377.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004431/3.492, allocations: 35.66 kB / 1.083 GB, free: 377.5 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001239/3.492, allocations: 52.36 kB / 1.083 GB, free: 377.5 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.326e-05/3.492, allocations: 23.92 kB / 1.083 GB, free: 377.4 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0006255/3.493, allocations: 0.5397 MB / 1.084 GB, free: 377 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.7e-07/3.493, allocations: 4 kB / 1.084 GB, free: 377 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.006455/3.499, allocations: 2.057 MB / 1.086 GB, free: 375.3 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (ReliefValve.z,ReliefValve.v,ReliefValve.Wdyn,VolumeD1.h) * Number of discrete variables: 3 ($whenCondition2,$whenCondition1,ReliefValve.clapper_is_free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * 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 {(3,18)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01161/3.511, allocations: 2.986 MB / 1.089 GB, free: 372.9 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001963/3.513, allocations: 0.8106 MB / 1.089 GB, free: 372.3 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/3.513, allocations: 4.125 kB / 1.089 GB, free: 372.3 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0007256/3.514, allocations: 362.6 kB / 1.09 GB, free: 372 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001196/3.515, allocations: 177 kB / 1.09 GB, free: 371.9 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003523/3.519, allocations: 2.601 MB / 1.092 GB, free: 369.4 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005663/3.519, allocations: 1.069 MB / 1.093 GB, free: 368.4 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0006092/3.52, allocations: 158.2 kB / 1.094 GB, free: 368.2 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001687/3.52, allocations: 71.36 kB / 1.094 GB, free: 368.2 MB / 0.8106 GB Notification: Performance of SimCode: time 8.72e-07/3.52, allocations: 0 / 1.094 GB, free: 368.2 MB / 0.8106 GB Notification: Performance of Templates: time 0.07361/3.594, allocations: 60.02 MB / 1.152 GB, free: 308.8 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.pipe 2>&1) Environment - environmentSimulation: