Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.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: "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDynamicCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDynamicCheckValve",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.7896/0.7896, allocations: 150.9 MB / 166.5 MB, free: 14.43 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003103/0.0003105, allocations: 19.81 kB / 236.6 MB, free: 1.984 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04986/0.05018, allocations: 31.35 MB / 267.9 MB, free: 7.551 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.SimpleExamples.TestDynamicCheckValve): time 1.529/1.579, allocations: 295.1 MB / 0.5498 GB, free: 12.7 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5028/2.082, allocations: 187.8 MB / 0.7332 GB, free: 1.762 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004208/2.083, allocations: 7.719 kB / 0.7332 GB, free: 1.762 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/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.0003147/2.083, allocations: 58.98 kB / 0.7333 GB, free: 1.762 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0006048/2.083, allocations: 152 kB / 0.7335 GB, free: 1.762 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.03622/2.12, allocations: 11.72 MB / 0.7449 GB, free: 1.531 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0007737/2.121, allocations: 498 kB / 0.7454 GB, free: 1.531 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004237/2.121, allocations: 245 kB / 0.7456 GB, free: 1.516 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004159/2.121, allocations: 203 kB / 0.7458 GB, free: 1.516 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003849/2.122, allocations: 220.5 kB / 0.746 GB, free: 1.516 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 9.611e-05/2.122, allocations: 40.09 kB / 0.746 GB, free: 1.516 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04106/2.163, allocations: 19.91 MB / 0.7655 GB, free: 0.8438 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002159/2.163, allocations: 97.22 kB / 0.7656 GB, free: 0.8281 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004262/2.164, allocations: 231.4 kB / 0.7658 GB, free: 0.8125 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02718/2.191, allocations: 9.901 MB / 0.7755 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/2.191, allocations: 4.094 kB / 0.7755 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.274e-06/2.191, allocations: 0 / 0.7755 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.84e-05/2.191, allocations: 0 / 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: 95 * Number of variables: 95 Notification: Performance of Generate backend data structure: time 0.005742/2.197, allocations: 1.86 MB / 0.7773 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/2.197, allocations: 10.78 kB / 0.7773 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001115/2.197, allocations: 76.66 kB / 0.7774 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000135/2.197, allocations: 58.92 kB / 0.7774 GB, free: 12.18 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000554/2.198, allocations: 338 kB / 0.7777 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.062e-05/2.198, allocations: 56.95 kB / 0.7778 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.943e-05/2.198, allocations: 38.31 kB / 0.7778 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006957/2.198, allocations: 407 kB / 0.7782 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.841e-05/2.198, allocations: 3 kB / 0.7782 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.709e-05/2.199, allocations: 16.75 kB / 0.7782 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/2.199, allocations: 15.2 kB / 0.7783 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005392/2.199, allocations: 283.8 kB / 0.7785 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002196/2.201, allocations: 2.01 MB / 0.7805 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006002/2.202, allocations: 221.5 kB / 0.7807 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001543/2.202, allocations: 84.67 kB / 0.7808 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2353/2.437, allocations: 123.2 MB / 0.9011 GB, free: 8.219 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003896/2.438, allocations: 141.6 kB / 0.9013 GB, free: 8.074 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=21): time 2.555e-06/2.438, allocations: 0 / 0.9013 GB, free: 8.074 MB / 0.7325 GB Notification: Performance of matching and sorting (n=21): time 0.001193/2.439, allocations: 414.8 kB / 0.9017 GB, free: 7.652 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.302e-05/2.439, allocations: 55.41 kB / 0.9017 GB, free: 7.586 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004691/2.44, allocations: 316.5 kB / 0.902 GB, free: 7.266 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.651e-05/2.44, allocations: 25.7 kB / 0.902 GB, free: 7.234 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001899/2.44, allocations: 244 kB / 0.9023 GB, free: 6.996 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 7.195e-05/2.44, allocations: 74.95 kB / 0.9023 GB, free: 6.922 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001367/2.44, allocations: 73.92 kB / 0.9024 GB, free: 6.844 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001481/2.44, allocations: 338.8 kB / 0.9027 GB, free: 6.504 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001935/2.44, allocations: 80.61 kB / 0.9028 GB, free: 6.426 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002602/2.441, allocations: 181.2 kB / 0.903 GB, free: 6.207 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004263/2.441, allocations: 267.5 kB / 0.9032 GB, free: 5.914 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/2.441, allocations: 0 / 0.9032 GB, free: 5.914 MB / 0.7325 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009071/2.442, allocations: 395.1 kB / 0.9036 GB, free: 5.543 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.181e-05/2.442, allocations: 5.875 kB / 0.9036 GB, free: 5.539 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/2.442, allocations: 4 kB / 0.9036 GB, free: 5.535 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001006/2.443, allocations: 170.4 kB / 0.9038 GB, free: 5.367 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001917/2.443, allocations: 51.16 kB / 0.9038 GB, free: 5.32 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002504/2.446, allocations: 2.379 MB / 0.9062 GB, free: 2.789 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000296/2.446, allocations: 51.5 kB / 0.9062 GB, free: 2.738 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.557e-05/2.446, allocations: 16 kB / 0.9062 GB, free: 2.723 MB / 0.7325 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.0002018/2.446, allocations: 161.8 kB / 0.9064 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.853e-05/2.446, allocations: 31.62 kB / 0.9064 GB, free: 2.527 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007092/2.447, allocations: 317.1 kB / 0.9067 GB, free: 2.211 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.942e-06/2.447, allocations: 4 kB / 0.9067 GB, free: 2.207 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.485e-06/2.447, allocations: 0 / 0.9067 GB, free: 2.207 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/2.447, allocations: 9.328 kB / 0.9067 GB, free: 2.199 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004491/2.448, allocations: 383.4 kB / 0.9071 GB, free: 1.781 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/2.448, allocations: 7.938 kB / 0.9071 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002496/2.448, allocations: 47.06 kB / 0.9072 GB, free: 1.73 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004286/2.448, allocations: 75.53 kB / 0.9072 GB, free: 1.66 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.404e-05/2.448, allocations: 4 kB / 0.9072 GB, free: 1.656 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004678/2.449, allocations: 0.571 MB / 0.9078 GB, free: 1.062 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/2.449, allocations: 0 / 0.9078 GB, free: 1.062 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007974/2.45, allocations: 377.2 kB / 0.9081 GB, free: 0.6797 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001408/2.45, allocations: 128.8 kB / 0.9083 GB, free: 0.5352 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.48e-05/2.45, allocations: 4 kB / 0.9083 GB, free: 0.5312 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00018/2.45, allocations: 23.91 kB / 0.9083 GB, free: 0.5078 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.36e-05/2.45, allocations: 26.59 kB / 0.9083 GB, free: 496 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.697e-05/2.45, allocations: 7.984 kB / 0.9083 GB, free: 488 kB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002642/2.451, allocations: 235.2 kB / 0.9086 GB, free: 252 kB / 0.7325 GB Notification: Performance of sort global known variables: time 1.31e-07/2.451, allocations: 0 / 0.9086 GB, free: 252 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.00449/2.455, allocations: 1.468 MB / 0.91 GB, free: 14.78 MB / 0.7481 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.009013/2.464, allocations: 3.002 MB / 0.9129 GB, free: 12.03 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0008767/2.465, allocations: 357.7 kB / 0.9133 GB, free: 11.68 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/2.465, allocations: 0 / 0.9133 GB, free: 11.68 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002984/2.465, allocations: 110.1 kB / 0.9134 GB, free: 11.58 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004731/2.466, allocations: 86.45 kB / 0.9134 GB, free: 11.5 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007571/2.473, allocations: 3.76 MB / 0.9171 GB, free: 7.617 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004386/2.474, allocations: 0.7951 MB / 0.9179 GB, free: 6.797 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0002052/2.474, allocations: 50.95 kB / 0.9179 GB, free: 6.746 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002105/2.474, allocations: 140 kB / 0.9181 GB, free: 6.609 MB / 0.7481 GB Notification: Performance of SimCode: time 4.81e-07/2.474, allocations: 0 / 0.9181 GB, free: 6.609 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09378/2.568, allocations: 53.67 MB / 0.9705 GB, free: 1.094 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.67/16.24, allocations: 21.14 kB / 0.9705 GB, free: 1.078 MB / 0.795 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDynamicCheckValve_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDynamicCheckValve.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe 2>&1)