Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.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.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.9309/0.931, allocations: 150.9 MB / 167.1 MB, free: 14.72 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003363/0.0003364, allocations: 15.97 kB / 206 MB, free: 9.25 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1527/0.153, allocations: 31.34 MB / 237.3 MB, free: 5.699 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.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve): time 1.599/1.752, allocations: 294.7 MB / 0.5196 GB, free: 13.02 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1885/1.941, allocations: 187.9 MB / 0.703 GB, free: 0.7422 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002551/1.941, allocations: 7.938 kB / 0.703 GB, free: 0.7344 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/DynamicCheckValve.mo:56:3-57: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/DynamicCheckValve.mo:58:3-59: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.0002353/1.941, allocations: 59.44 kB / 0.7031 GB, free: 0.6758 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003309/1.942, allocations: 146.8 kB / 0.7032 GB, free: 0.5312 MB / 0.5762 GB [/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/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh1satp 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/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh2satp 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/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du1satp_der 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/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du2satp_der 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/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T 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.3157/2.257, allocations: 11.49 MB / 0.7144 GB, free: 2.316 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0006804/2.258, allocations: 496.2 kB / 0.7149 GB, free: 2.316 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003098/2.258, allocations: 242.1 kB / 0.7151 GB, free: 2.293 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002324/2.258, allocations: 201.9 kB / 0.7153 GB, free: 2.293 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002295/2.259, allocations: 220.3 kB / 0.7155 GB, free: 2.293 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.429e-05/2.259, allocations: 39.5 kB / 0.7156 GB, free: 2.293 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03294/2.292, allocations: 19.91 MB / 0.735 GB, free: 2.188 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001958/2.292, allocations: 98.36 kB / 0.7351 GB, free: 2.188 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003351/2.292, allocations: 224.7 kB / 0.7353 GB, free: 2.188 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02517/2.317, allocations: 9.837 MB / 0.7449 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/2.318, allocations: 0 / 0.7449 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.204e-06/2.318, allocations: 0 / 0.7449 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.509e-05/2.318, allocations: 1.203 kB / 0.7449 GB, free: 15.55 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: 95 * Number of variables: 95 Notification: Performance of Generate backend data structure: time 0.005401/2.323, allocations: 1.857 MB / 0.7468 GB, free: 14.36 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/2.323, allocations: 10.72 kB / 0.7468 GB, free: 14.36 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001122/2.323, allocations: 55.23 kB / 0.7468 GB, free: 14.33 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004733/2.324, allocations: 342.9 kB / 0.7471 GB, free: 14.06 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.943e-05/2.324, allocations: 56.95 kB / 0.7472 GB, free: 14.03 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.582e-05/2.324, allocations: 37.47 kB / 0.7472 GB, free: 14.03 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006407/2.324, allocations: 404.8 kB / 0.7476 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/2.324, allocations: 4.312 kB / 0.7476 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.442e-05/2.324, allocations: 20.31 kB / 0.7476 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/2.324, allocations: 10.97 kB / 0.7477 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004851/2.325, allocations: 286.4 kB / 0.7479 GB, free: 13.82 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001921/2.327, allocations: 2.016 MB / 0.7499 GB, free: 12.09 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005895/2.327, allocations: 217 kB / 0.7501 GB, free: 12.04 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001448/2.328, allocations: 82.33 kB / 0.7502 GB, free: 12.02 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2296/2.557, allocations: 123.2 MB / 0.8705 GB, free: 13.27 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003288/2.558, allocations: 140 kB / 0.8707 GB, free: 13.14 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=21): time 2.374e-06/2.558, allocations: 0 / 0.8707 GB, free: 13.14 MB / 0.7169 GB Notification: Performance of matching and sorting (n=21): time 0.00102/2.559, allocations: 406.4 kB / 0.871 GB, free: 12.79 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.264e-05/2.559, allocations: 59.41 kB / 0.8711 GB, free: 12.72 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003563/2.559, allocations: 313 kB / 0.8714 GB, free: 12.46 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.81e-05/2.559, allocations: 33.33 kB / 0.8714 GB, free: 12.43 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001499/2.559, allocations: 243.2 kB / 0.8717 GB, free: 12.24 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 6.217e-05/2.559, allocations: 72.19 kB / 0.8717 GB, free: 12.18 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001337/2.559, allocations: 75.92 kB / 0.8718 GB, free: 12.12 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001242/2.56, allocations: 337.6 kB / 0.8721 GB, free: 11.79 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001791/2.56, allocations: 84.3 kB / 0.8722 GB, free: 11.74 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002394/2.56, allocations: 180.8 kB / 0.8724 GB, free: 11.55 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004175/2.56, allocations: 263.8 kB / 0.8726 GB, free: 11.32 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.102e-06/2.56, allocations: 5.766 kB / 0.8726 GB, free: 11.32 MB / 0.7169 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009016/2.561, allocations: 386.2 kB / 0.873 GB, free: 11.04 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/2.561, allocations: 8.438 kB / 0.873 GB, free: 11.03 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/2.561, allocations: 8 kB / 0.873 GB, free: 11.02 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009934/2.562, allocations: 174.8 kB / 0.8732 GB, free: 10.86 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001883/2.563, allocations: 52.94 kB / 0.8732 GB, free: 10.82 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002251/2.565, allocations: 2.366 MB / 0.8755 GB, free: 8.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002661/2.565, allocations: 49.05 kB / 0.8756 GB, free: 8.414 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.239e-05/2.565, allocations: 21.86 kB / 0.8756 GB, free: 8.395 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 9 (sourceP1.C.ftype,puitsP1.fluid,checkValve.fluid,checkValve.libre,$whenCondition1,$whenCondition2,sourceP1.fluid1,sourceP1.C.diff_on_2,checkValve.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,2), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001769/2.565, allocations: 156 kB / 0.8758 GB, free: 8.262 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.891e-05/2.565, allocations: 27.62 kB / 0.8758 GB, free: 8.234 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007366/2.566, allocations: 328.2 kB / 0.8761 GB, free: 7.98 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/2.566, allocations: 4 kB / 0.8761 GB, free: 7.977 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-06/2.566, allocations: 0 / 0.8761 GB, free: 7.977 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/2.566, allocations: 4 kB / 0.8761 GB, free: 7.973 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003852/2.567, allocations: 394.6 kB / 0.8765 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/2.567, allocations: 0 / 0.8765 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002559/2.567, allocations: 46.64 kB / 0.8765 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004163/2.567, allocations: 72.44 kB / 0.8766 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.14e-05/2.567, allocations: 7.312 kB / 0.8766 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004137/2.568, allocations: 0.5601 MB / 0.8771 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/2.568, allocations: 3.094 kB / 0.8772 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007525/2.569, allocations: 385.2 kB / 0.8775 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001282/2.569, allocations: 129.1 kB / 0.8776 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.153e-05/2.569, allocations: 1.688 kB / 0.8776 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00017/2.569, allocations: 18.86 kB / 0.8777 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.534e-05/2.569, allocations: 30.83 kB / 0.8777 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.402e-05/2.569, allocations: 9.203 kB / 0.8777 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002251/2.569, allocations: 231.7 kB / 0.8779 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.01e-07/2.569, allocations: 4.062 kB / 0.8779 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.003742/2.573, allocations: 1.467 MB / 0.8794 GB, free: 4.902 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (checkValve.theta,checkValve.omega) * Number of discrete variables: 3 ($whenCondition2,$whenCondition1,checkValve.libre) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * 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.00707/2.58, allocations: 2.215 MB / 0.8815 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0008254/2.581, allocations: 353.5 kB / 0.8819 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/2.581, allocations: 2.312 kB / 0.8819 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002799/2.581, allocations: 108.3 kB / 0.882 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004635/2.582, allocations: 81.45 kB / 0.882 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001361/2.583, allocations: 0.7578 MB / 0.8828 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003404/2.583, allocations: 0.8029 MB / 0.8836 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001668/2.584, allocations: 50.89 kB / 0.8836 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.395e-05/2.584, allocations: 31.42 kB / 0.8836 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of SimCode: time 3.1e-07/2.584, allocations: 0 / 0.8836 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of Templates: time 0.06305/2.647, allocations: 47.36 MB / 0.9299 GB, free: 1.695 MB / 0.7637 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1)