Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.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.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8269/0.8269, allocations: 150.9 MB / 167.2 MB, free: 14.56 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003528/0.0003529, allocations: 19.77 kB / 237.7 MB, free: 1.996 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05413/0.0545, allocations: 31.34 MB / 269.1 MB, free: 7.234 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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve): time 1.666/1.721, allocations: 294.9 MB / 0.5508 GB, free: 12.99 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5817/2.302, allocations: 187.5 MB / 0.7338 GB, free: 1.754 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003298/2.303, allocations: 7.062 kB / 0.7338 GB, free: 1.754 MB / 0.5919 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/CheckValve.mo:37:3-38:68: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/CheckValve.mo:39:3-40:66: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.0001507/2.303, allocations: 41.31 kB / 0.7339 GB, free: 1.754 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0003384/2.303, allocations: 121.3 kB / 0.734 GB, free: 1.754 MB / 0.5919 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.03146/2.335, allocations: 11.54 MB / 0.7453 GB, free: 1.543 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0005754/2.335, allocations: 415.7 kB / 0.7457 GB, free: 1.539 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002703/2.336, allocations: 216.5 kB / 0.7459 GB, free: 1.531 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001772/2.336, allocations: 159.6 kB / 0.746 GB, free: 1.531 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001796/2.336, allocations: 181.1 kB / 0.7462 GB, free: 1.531 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.752e-05/2.336, allocations: 34.38 kB / 0.7462 GB, free: 1.531 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03538/2.371, allocations: 19.9 MB / 0.7657 GB, free: 1.039 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001645/2.372, allocations: 78.62 kB / 0.7657 GB, free: 1.027 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002879/2.372, allocations: 194.3 kB / 0.7659 GB, free: 1.016 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02188/2.394, allocations: 9.793 MB / 0.7755 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/2.394, allocations: 3.531 kB / 0.7755 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.753e-06/2.394, allocations: 0 / 0.7755 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.879e-05/2.394, allocations: 0.9375 kB / 0.7755 GB, free: 13.45 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.005084/2.399, allocations: 1.856 MB / 0.7773 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/2.399, allocations: 13.52 kB / 0.7773 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001102/2.399, allocations: 47.84 kB / 0.7774 GB, free: 12.19 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003889/2.4, allocations: 313.9 kB / 0.7777 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.672e-05/2.4, allocations: 53.98 kB / 0.7777 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.089e-05/2.4, allocations: 32.56 kB / 0.7777 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005904/2.4, allocations: 381.4 kB / 0.7781 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/2.4, allocations: 6.031 kB / 0.7781 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.843e-05/2.4, allocations: 13.12 kB / 0.7781 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.856e-06/2.4, allocations: 9.219 kB / 0.7781 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004974/2.401, allocations: 255.5 kB / 0.7784 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00179/2.403, allocations: 1.93 MB / 0.7803 GB, free: 10 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002396/2.403, allocations: 102.8 kB / 0.7804 GB, free: 9.965 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001257/2.403, allocations: 57.42 kB / 0.7804 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2345/2.637, allocations: 123.2 MB / 0.9008 GB, free: 9.246 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003156/2.638, allocations: 115.3 kB / 0.9009 GB, free: 9.137 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=16): time 2.995e-06/2.638, allocations: 2.906 kB / 0.9009 GB, free: 9.137 MB / 0.7325 GB Notification: Performance of matching and sorting (n=16): time 0.0009567/2.639, allocations: 344.9 kB / 0.9012 GB, free: 8.824 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.305e-05/2.639, allocations: 56.28 kB / 0.9013 GB, free: 8.758 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003186/2.639, allocations: 267.8 kB / 0.9015 GB, free: 8.535 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.969e-05/2.639, allocations: 34.53 kB / 0.9016 GB, free: 8.5 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000162/2.639, allocations: 232.5 kB / 0.9018 GB, free: 8.305 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.455e-05/2.639, allocations: 51.47 kB / 0.9018 GB, free: 8.266 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.78e-05/2.64, allocations: 63.97 kB / 0.9019 GB, free: 8.219 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001117/2.64, allocations: 334 kB / 0.9022 GB, free: 7.887 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001659/2.64, allocations: 64.55 kB / 0.9023 GB, free: 7.824 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002219/2.64, allocations: 183.3 kB / 0.9024 GB, free: 7.59 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001476/2.642, allocations: 485.5 kB / 0.9029 GB, free: 7.094 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.349e-06/2.642, allocations: 1.203 kB / 0.9029 GB, free: 7.094 MB / 0.7325 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006634/2.642, allocations: 322.1 kB / 0.9032 GB, free: 6.793 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/2.642, allocations: 4 kB / 0.9032 GB, free: 6.789 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/2.642, allocations: 8.031 kB / 0.9032 GB, free: 6.781 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000602/2.643, allocations: 94.06 kB / 0.9033 GB, free: 6.691 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001783/2.643, allocations: 55.09 kB / 0.9034 GB, free: 6.641 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003937/2.643, allocations: 0.5593 MB / 0.9039 GB, free: 6.059 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002197/2.644, allocations: 35.77 kB / 0.9039 GB, free: 6.023 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.222e-05/2.644, allocations: 16 kB / 0.904 GB, free: 6.008 MB / 0.7325 GB Warning: Assuming fixed start value for the following 1 variables: pulse.T0:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 17 ($PRE.checkValve3.touvert,$whenCondition3,$PRE.checkValve3.tferme,$whenCondition2,$whenCondition1,sourceP1.C.ftype,$PRE.pulse.T0,puitsP1.fluid,checkValve3.fluid,checkValve3.tferme,checkValve3.touvert,checkValve3.ouvert,$PRE.checkValve3.ouvert,pulse.T0,sourceP1.fluid1,sourceP1.C.diff_on_2,checkValve3.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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.0001959/2.644, allocations: 152.1 kB / 0.9041 GB, free: 5.855 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.731e-05/2.644, allocations: 31.8 kB / 0.9041 GB, free: 5.824 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005509/2.645, allocations: 242.1 kB / 0.9044 GB, free: 5.586 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/2.645, allocations: 7.984 kB / 0.9044 GB, free: 5.578 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/2.645, allocations: 0 / 0.9044 GB, free: 5.578 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.463e-05/2.645, allocations: 96.92 kB / 0.9045 GB, free: 5.465 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.18e-05/2.645, allocations: 4 kB / 0.9045 GB, free: 5.461 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/2.645, allocations: 15.92 kB / 0.9045 GB, free: 5.445 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.641e-05/2.645, allocations: 15.97 kB / 0.9045 GB, free: 5.43 MB / 0.7325 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004688/2.645, allocations: 259.8 kB / 0.9047 GB, free: 5.172 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005158/2.646, allocations: 400.7 kB / 0.9051 GB, free: 4.766 MB / 0.7325 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001387/2.646, allocations: 56 kB / 0.9052 GB, free: 4.711 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001906/2.646, allocations: 194.2 kB / 0.9054 GB, free: 4.523 MB / 0.7325 GB Notification: Performance of Backend: time 7.71e-07/2.646, allocations: 0 / 0.9054 GB, free: 4.523 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.01581/2.662, allocations: 3.567 MB / 0.9088 GB, free: 1.398 MB / 0.7325 GB Notification: Performance of SimCode: time 0.001448/2.664, allocations: 1.012 MB / 0.9098 GB, free: 360 kB / 0.7325 GB Notification: Performance of Templates: time 0.1114/2.775, allocations: 72.15 MB / 0.9803 GB, free: 8.211 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe 2>&1)