Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve.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.Examples.SimpleExamples.TestIdealSwitchValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestIdealSwitchValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestIdealSwitchValve",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.7501/0.7501, allocations: 150.9 MB / 166 MB, free: 14.56 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002893/0.0002895, allocations: 11.98 kB / 204.1 MB, free: 9.992 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1348, allocations: 31.33 MB / 235.4 MB, free: 5.414 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.Examples.SimpleExamples.TestIdealSwitchValve): time 1.516/1.65, allocations: 294.4 MB / 0.5175 GB, free: 12.88 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1915/1.842, allocations: 187.7 MB / 0.7007 GB, free: 0.832 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002808/1.842, allocations: 4 kB / 0.7007 GB, free: 0.8281 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/IdealSwitchValve.mo:23:3-25:43:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/IdealSwitchValve.mo:26:3-28:38:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/LumpedStraightPipe.mo:49:3-50:42:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/LumpedStraightPipe.mo:51:3-53:37:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/LumpedStraightPipe.mo:49:3-50:42:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/LumpedStraightPipe.mo:51:3-53:37:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0003649/1.843, allocations: 104.1 kB / 0.7008 GB, free: 0.7266 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002852/1.843, allocations: 146.9 kB / 0.701 GB, free: 0.582 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.3064/2.149, allocations: 8.672 MB / 0.7094 GB, free: 4.168 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0008105/2.15, allocations: 0.5827 MB / 0.71 GB, free: 4.168 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000318/2.15, allocations: 225.8 kB / 0.7102 GB, free: 4.145 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003861/2.151, allocations: 228.8 kB / 0.7104 GB, free: 4.145 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002457/2.151, allocations: 223.2 kB / 0.7107 GB, free: 4.145 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.323e-05/2.151, allocations: 26.03 kB / 0.7107 GB, free: 4.145 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03127/2.182, allocations: 20.07 MB / 0.7303 GB, free: 4.047 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001582/2.183, allocations: 77.31 kB / 0.7304 GB, free: 4.047 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004224/2.183, allocations: 245.4 kB / 0.7306 GB, free: 4.047 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02241/2.205, allocations: 10.01 MB / 0.7404 GB, free: 1.344 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/2.206, allocations: 0 / 0.7404 GB, free: 1.344 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.743e-06/2.206, allocations: 1.906 kB / 0.7404 GB, free: 1.344 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.664e-06/2.206, allocations: 0 / 0.7404 GB, free: 1.344 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.005017/2.211, allocations: 1.916 MB / 0.7422 GB, free: 108 kB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/2.211, allocations: 11.12 kB / 0.7423 GB, free: 108 kB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.008e-05/2.211, allocations: 88.64 kB / 0.7423 GB, free: 56 kB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.517e-05/2.211, allocations: 57.91 kB / 0.7424 GB, free: 24 kB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003511/2.211, allocations: 317.8 kB / 0.7427 GB, free: 15.76 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.051e-05/2.211, allocations: 57.91 kB / 0.7427 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.737e-05/2.211, allocations: 41.53 kB / 0.7428 GB, free: 15.72 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006461/2.212, allocations: 0.5046 MB / 0.7433 GB, free: 15.51 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/2.212, allocations: 0 / 0.7433 GB, free: 15.51 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.446e-05/2.212, allocations: 24.16 kB / 0.7433 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.556e-05/2.212, allocations: 14 kB / 0.7433 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004322/2.212, allocations: 320.2 kB / 0.7436 GB, free: 15.47 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.03636/2.249, allocations: 19.2 MB / 0.7624 GB, free: 1.242 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006478/2.25, allocations: 303.9 kB / 0.7627 GB, free: 1.191 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002184/2.25, allocations: 171.5 kB / 0.7628 GB, free: 1.168 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2976/2.547, allocations: 150.4 MB / 0.9097 GB, free: 15.64 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004606/2.548, allocations: 264.1 kB / 0.91 GB, free: 15.43 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=60): time 2.144e-06/2.548, allocations: 0 / 0.91 GB, free: 15.43 MB / 0.7637 GB Notification: Performance of matching and sorting (n=60): time 0.002589/2.55, allocations: 0.927 MB / 0.9109 GB, free: 14.68 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.544e-05/2.551, allocations: 162.2 kB / 0.9111 GB, free: 14.49 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003981/2.551, allocations: 343.4 kB / 0.9114 GB, free: 14.21 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 2.63e-05/2.551, allocations: 29.7 kB / 0.9114 GB, free: 14.18 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001459/2.551, allocations: 225.7 kB / 0.9116 GB, free: 14 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001264/2.551, allocations: 193.5 kB / 0.9118 GB, free: 13.84 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/2.551, allocations: 93.48 kB / 0.9119 GB, free: 13.77 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001364/2.552, allocations: 352.4 kB / 0.9122 GB, free: 13.43 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002079/2.552, allocations: 132.4 kB / 0.9124 GB, free: 13.36 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002728/2.552, allocations: 220.4 kB / 0.9126 GB, free: 13.18 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003415/2.556, allocations: 1.037 MB / 0.9136 GB, free: 12.32 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/2.556, allocations: 0 / 0.9136 GB, free: 12.32 MB / 0.7637 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009151/2.556, allocations: 0.5978 MB / 0.9142 GB, free: 11.9 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 3.499e-05/2.557, allocations: 33.7 kB / 0.9142 GB, free: 11.86 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/2.557, allocations: 5.5 kB / 0.9142 GB, free: 11.86 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001805/2.558, allocations: 478.2 kB / 0.9147 GB, free: 11.43 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001111/2.558, allocations: 27.08 kB / 0.9147 GB, free: 11.41 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008793/2.559, allocations: 0.8369 MB / 0.9155 GB, free: 10.68 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002841/2.56, allocations: 59.11 kB / 0.9156 GB, free: 10.63 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.641e-05/2.56, allocations: 15.25 kB / 0.9156 GB, free: 10.62 MB / 0.7637 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: 11 * Number of states: 0 () * Number of discrete variables: 12 (perteDP1.C2.b,perteDP1.C1.a,perteDP2.C2.b,perteDP2.C1.a,SwitchValve.C2.b,SwitchValve.C1.a,PuitsP1.C.a,SourceP1.C.b,$PRE.pulse.T0,pulse.yL.signal,pulse.T0,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * 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 {(5,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002665/2.56, allocations: 198.3 kB / 0.9158 GB, free: 10.44 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.663e-05/2.56, allocations: 43.44 kB / 0.9158 GB, free: 10.4 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001444/2.561, allocations: 0.9384 MB / 0.9167 GB, free: 9.68 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0007865/2.562, allocations: 0.5438 MB / 0.9173 GB, free: 9.293 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/2.562, allocations: 0 / 0.9173 GB, free: 9.293 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/2.562, allocations: 3.984 kB / 0.9173 GB, free: 9.289 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002042/2.564, allocations: 1.413 MB / 0.9186 GB, free: 8.191 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/2.564, allocations: 0 / 0.9186 GB, free: 8.191 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001314/2.565, allocations: 46.3 kB / 0.9187 GB, free: 8.152 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001509/2.566, allocations: 476.2 kB / 0.9191 GB, free: 7.738 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.355e-05/2.566, allocations: 10.94 kB / 0.9191 GB, free: 7.734 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008339/2.567, allocations: 0.8999 MB / 0.92 GB, free: 6.957 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/2.567, allocations: 0 / 0.92 GB, free: 6.957 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001151/2.568, allocations: 0.6974 MB / 0.9207 GB, free: 6.41 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001729/2.568, allocations: 145.9 kB / 0.9208 GB, free: 6.262 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.918e-05/2.568, allocations: 17.16 kB / 0.9209 GB, free: 6.25 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002296/2.569, allocations: 21.33 kB / 0.9209 GB, free: 6.234 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.431e-05/2.569, allocations: 29.25 kB / 0.9209 GB, free: 6.211 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.549e-05/2.569, allocations: 15.11 kB / 0.9209 GB, free: 6.199 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0003411/2.569, allocations: 312.1 kB / 0.9212 GB, free: 5.965 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.4e-07/2.569, allocations: 4 kB / 0.9212 GB, free: 5.961 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.004051/2.573, allocations: 1.526 MB / 0.9227 GB, free: 4.539 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,pulse.T0,pulse.yL.signal) * Number of discrete states: 3 (pulse.yL.signal,pulse.T0,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 1 * 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 {(5,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008829/2.582, allocations: 3.496 MB / 0.9261 GB, free: 1.535 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.001111/2.583, allocations: 0.5604 MB / 0.9267 GB, free: 1.102 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/2.583, allocations: 1.203 kB / 0.9267 GB, free: 1.102 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0005165/2.584, allocations: 303 kB / 0.927 GB, free: 0.8711 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001094/2.585, allocations: 200.5 kB / 0.9272 GB, free: 0.7109 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007525/2.592, allocations: 4.816 MB / 0.9319 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003737/2.593, allocations: 0.8596 MB / 0.9327 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.000227/2.593, allocations: 50.55 kB / 0.9327 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002012/2.593, allocations: 183.4 kB / 0.9329 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of SimCode: time 5.51e-07/2.593, allocations: 0 / 0.9329 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2743/2.867, allocations: 59.41 MB / 0.9909 GB, free: 425.5 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000192/2.868, allocations: 281.1 kB / 0.9912 GB, free: 425.2 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.759/7.626, allocations: 3.422 kB / 0.9912 GB, free: 425.2 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestIdealSwitchValve_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestIdealSwitchValve.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve.pipe 2>&1)