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: translateModel(ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8813/0.8813, allocations: 150.8 MB / 166.6 MB, free: 11.16 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002576/0.0002578, allocations: 11.98 kB / 204.7 MB, free: 6.168 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1371/0.1374, allocations: 31.33 MB / 236 MB, free: 3.875 MB / 186.7 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.548/1.686, allocations: 292.8 MB / 0.5164 GB, free: 9.219 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.575/2.261, allocations: 187.7 MB / 0.6997 GB, free: 1.637 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005246/2.261, allocations: 2.812 kB / 0.6997 GB, free: 1.637 MB / 0.5573 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.0007427/2.262, allocations: 108.9 kB / 0.6998 GB, free: 1.637 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0008597/2.263, allocations: 144.5 kB / 0.6999 GB, free: 1.637 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.03901/2.302, allocations: 8.677 MB / 0.7084 GB, free: 1.461 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.001057/2.303, allocations: 0.5925 MB / 0.709 GB, free: 1.461 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004645/2.303, allocations: 231.1 kB / 0.7092 GB, free: 1.418 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006284/2.304, allocations: 229 kB / 0.7094 GB, free: 1.418 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000548/2.305, allocations: 224.1 kB / 0.7096 GB, free: 1.418 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0001073/2.305, allocations: 26.16 kB / 0.7096 GB, free: 1.418 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05025/2.355, allocations: 20.08 MB / 0.7292 GB, free: 13.71 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.00021/2.355, allocations: 76.39 kB / 0.7293 GB, free: 13.7 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0005503/2.356, allocations: 247.8 kB / 0.7295 GB, free: 13.68 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.02601/2.382, allocations: 10.01 MB / 0.7393 GB, free: 9.594 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/2.382, allocations: 3.312 kB / 0.7393 GB, free: 9.594 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.303e-06/2.382, allocations: 4.109 kB / 0.7393 GB, free: 9.594 MB / 0.573 GB Notification: Performance of Transformations before backend: time 1.871e-05/2.382, allocations: 0 / 0.7393 GB, free: 9.594 MB / 0.573 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.005387/2.387, allocations: 1.917 MB / 0.7412 GB, free: 8.348 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/2.387, allocations: 10.09 kB / 0.7412 GB, free: 8.348 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001026/2.387, allocations: 52.5 kB / 0.7413 GB, free: 8.32 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003509/2.388, allocations: 321.3 kB / 0.7416 GB, free: 8.047 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.918e-05/2.388, allocations: 52.05 kB / 0.7416 GB, free: 8.016 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.552e-05/2.388, allocations: 43.86 kB / 0.7417 GB, free: 8.012 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006391/2.389, allocations: 0.5036 MB / 0.7422 GB, free: 7.785 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/2.389, allocations: 7.031 kB / 0.7422 GB, free: 7.781 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.934e-05/2.389, allocations: 18.88 kB / 0.7422 GB, free: 7.777 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.763e-05/2.389, allocations: 20.83 kB / 0.7422 GB, free: 7.773 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004118/2.389, allocations: 308 kB / 0.7425 GB, free: 7.73 MB / 0.573 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.03785/2.427, allocations: 19.2 MB / 0.7612 GB, free: 7.793 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006402/2.428, allocations: 298.8 kB / 0.7615 GB, free: 7.617 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002343/2.428, allocations: 172.6 kB / 0.7617 GB, free: 7.523 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3066/2.734, allocations: 150.5 MB / 0.9086 GB, free: 3.359 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005077/2.735, allocations: 259.5 kB / 0.9089 GB, free: 3.082 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=60): time 2.264e-06/2.735, allocations: 0 / 0.9089 GB, free: 3.082 MB / 0.7448 GB Notification: Performance of matching and sorting (n=60): time 0.002544/2.738, allocations: 0.9281 MB / 0.9098 GB, free: 2.121 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/2.738, allocations: 174.1 kB / 0.9099 GB, free: 1.914 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003913/2.738, allocations: 345.5 kB / 0.9103 GB, free: 1.57 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.662e-05/2.738, allocations: 29.7 kB / 0.9103 GB, free: 1.535 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.000164/2.738, allocations: 220.1 kB / 0.9105 GB, free: 1.316 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001419/2.738, allocations: 195.9 kB / 0.9107 GB, free: 1.129 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001313/2.739, allocations: 97.33 kB / 0.9108 GB, free: 1.027 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001205/2.739, allocations: 350.8 kB / 0.9111 GB, free: 0.6758 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002026/2.739, allocations: 132.6 kB / 0.9112 GB, free: 0.5469 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002699/2.739, allocations: 222.2 kB / 0.9115 GB, free: 304 kB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003136/2.742, allocations: 1.028 MB / 0.9125 GB, free: 15.21 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/2.742, allocations: 0 / 0.9125 GB, free: 15.21 MB / 0.7605 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.000854/2.743, allocations: 0.588 MB / 0.913 GB, free: 14.61 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 3.916e-05/2.743, allocations: 38.8 kB / 0.9131 GB, free: 14.57 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/2.743, allocations: 4 kB / 0.9131 GB, free: 14.56 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001599/2.745, allocations: 472.5 kB / 0.9135 GB, free: 14.1 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001062/2.745, allocations: 27.92 kB / 0.9136 GB, free: 14.07 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008338/2.746, allocations: 0.8449 MB / 0.9144 GB, free: 13.2 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002664/2.746, allocations: 47.5 kB / 0.9144 GB, free: 13.15 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.748e-05/2.746, allocations: 19.98 kB / 0.9144 GB, free: 13.13 MB / 0.7605 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.0002393/2.746, allocations: 203.3 kB / 0.9146 GB, free: 12.92 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.33e-05/2.747, allocations: 39.44 kB / 0.9147 GB, free: 12.88 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001415/2.748, allocations: 0.933 MB / 0.9156 GB, free: 11.87 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0007967/2.749, allocations: 0.546 MB / 0.9161 GB, free: 11.3 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/2.749, allocations: 0 / 0.9161 GB, free: 11.3 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/2.749, allocations: 4 kB / 0.9161 GB, free: 11.3 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002013/2.751, allocations: 1.419 MB / 0.9175 GB, free: 9.828 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.085e-06/2.751, allocations: 4 kB / 0.9175 GB, free: 9.824 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001172/2.751, allocations: 35.98 kB / 0.9175 GB, free: 9.789 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001375/2.752, allocations: 472.9 kB / 0.918 GB, free: 9.324 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.623e-05/2.752, allocations: 13.09 kB / 0.918 GB, free: 9.312 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008026/2.753, allocations: 0.8952 MB / 0.9189 GB, free: 8.395 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/2.753, allocations: 0 / 0.9189 GB, free: 8.395 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001948/2.755, allocations: 1.569 MB / 0.9204 GB, free: 6.758 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001769/2.755, allocations: 160.3 kB / 0.9206 GB, free: 6.582 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.187e-05/2.755, allocations: 19.78 kB / 0.9206 GB, free: 6.562 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002164/2.756, allocations: 12 kB / 0.9206 GB, free: 6.551 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.765e-05/2.756, allocations: 33.05 kB / 0.9206 GB, free: 6.52 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-05/2.756, allocations: 12 kB / 0.9206 GB, free: 6.508 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0003306/2.756, allocations: 311.1 kB / 0.9209 GB, free: 6.203 MB / 0.7605 GB Notification: Performance of sort global known variables: time 1e-07/2.756, allocations: 0 / 0.9209 GB, free: 6.203 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.004632/2.761, allocations: 1.589 MB / 0.9225 GB, free: 4.613 MB / 0.7605 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.006707/2.767, allocations: 2.357 MB / 0.9248 GB, free: 2.539 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.001138/2.769, allocations: 0.5546 MB / 0.9253 GB, free: 1.953 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/2.769, allocations: 5.141 kB / 0.9253 GB, free: 1.949 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0005092/2.769, allocations: 307.5 kB / 0.9256 GB, free: 1.641 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001053/2.77, allocations: 186.9 kB / 0.9258 GB, free: 1.461 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001628/2.772, allocations: 1.442 MB / 0.9272 GB, free: 15.98 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003976/2.772, allocations: 0.879 MB / 0.9281 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0001849/2.772, allocations: 47.2 kB / 0.9281 GB, free: 15.03 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.891e-05/2.772, allocations: 39.42 kB / 0.9282 GB, free: 14.99 MB / 0.7761 GB Notification: Performance of SimCode: time 3.2e-07/2.773, allocations: 1.094 kB / 0.9282 GB, free: 14.99 MB / 0.7761 GB Notification: Performance of Templates: time 0.2465/3.019, allocations: 52.04 MB / 0.979 GB, free: 434.6 MB / 0.7917 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve.makefile (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 & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve.pipe 2>&1)