Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.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.Book.SimpleExamples.PressureLoss.TestSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7407/0.7407, allocations: 150.8 MB / 166.1 MB, free: 15.45 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.382e-05/1.395e-05, allocations: 0 / 204.8 MB, free: 10.07 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1342, allocations: 31.98 MB / 236.8 MB, free: 5.449 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve): time 1.425/1.559, allocations: 294.5 MB / 0.5188 GB, free: 12.51 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1712/1.73, allocations: 185.5 MB / 0.7 GB, free: 2.609 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003247/1.73, allocations: 4 kB / 0.7 GB, free: 2.605 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0003981/1.731, allocations: 107.3 kB / 0.7001 GB, free: 2.5 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0005233/1.731, allocations: 166.7 kB / 0.7003 GB, free: 2.336 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.2902/2.022, allocations: 8.854 MB / 0.7089 GB, free: 5.578 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0007906/2.022, allocations: 0.6614 MB / 0.7096 GB, free: 5.578 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003534/2.023, allocations: 205.9 kB / 0.7098 GB, free: 5.559 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004684/2.023, allocations: 237.1 kB / 0.71 GB, free: 5.559 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003806/2.024, allocations: 218 kB / 0.7102 GB, free: 5.559 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.316e-05/2.024, allocations: 17.88 kB / 0.7102 GB, free: 5.559 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03405/2.058, allocations: 20.16 MB / 0.7299 GB, free: 5.473 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002011/2.058, allocations: 67.84 kB / 0.73 GB, free: 5.473 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005439/2.059, allocations: 283.6 kB / 0.7302 GB, free: 5.441 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02096/2.079, allocations: 9.959 MB / 0.7399 GB, free: 2.539 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/2.08, allocations: 0 / 0.7399 GB, free: 2.539 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.565e-06/2.08, allocations: 0 / 0.7399 GB, free: 2.539 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.924e-05/2.08, allocations: 8.562 kB / 0.74 GB, free: 2.539 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.004909/2.084, allocations: 1.865 MB / 0.7418 GB, free: 1.285 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/2.085, allocations: 11.5 kB / 0.7418 GB, free: 1.285 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001115/2.085, allocations: 62.22 kB / 0.7418 GB, free: 1.254 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003168/2.085, allocations: 327 kB / 0.7422 GB, free: 0.9883 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.233e-05/2.085, allocations: 58.48 kB / 0.7422 GB, free: 0.957 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.554e-05/2.085, allocations: 46.38 kB / 0.7423 GB, free: 0.9531 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000622/2.086, allocations: 0.544 MB / 0.7428 GB, free: 0.7305 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/2.086, allocations: 3 kB / 0.7428 GB, free: 0.7305 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.147e-05/2.086, allocations: 22.5 kB / 0.7428 GB, free: 0.7305 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.936e-05/2.086, allocations: 22.64 kB / 0.7428 GB, free: 0.7266 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004258/2.086, allocations: 347.2 kB / 0.7432 GB, free: 0.6914 MB / 0.5762 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.03529/2.122, allocations: 19.5 MB / 0.7622 GB, free: 2.34 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006256/2.122, allocations: 327.7 kB / 0.7625 GB, free: 2.285 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002252/2.122, allocations: 194.9 kB / 0.7627 GB, free: 2.266 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2833/2.406, allocations: 151.8 MB / 0.9109 GB, free: 0.8672 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004702/2.406, allocations: 288.7 kB / 0.9112 GB, free: 0.6367 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=71): time 2.345e-06/2.406, allocations: 0 / 0.9112 GB, free: 0.6367 MB / 0.7481 GB Notification: Performance of matching and sorting (n=71): time 0.003021/2.409, allocations: 1.117 MB / 0.9123 GB, free: 15.75 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.883e-05/2.409, allocations: 169.7 kB / 0.9124 GB, free: 15.55 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003636/2.41, allocations: 355.6 kB / 0.9128 GB, free: 15.27 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 3.065e-05/2.41, allocations: 33.23 kB / 0.9128 GB, free: 15.23 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001379/2.41, allocations: 237.1 kB / 0.913 GB, free: 15.05 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001486/2.41, allocations: 224.6 kB / 0.9132 GB, free: 14.86 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.51e-05/2.41, allocations: 64.19 kB / 0.9133 GB, free: 14.81 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001311/2.41, allocations: 353.2 kB / 0.9136 GB, free: 14.47 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002155/2.411, allocations: 150.5 kB / 0.9138 GB, free: 14.39 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002528/2.411, allocations: 241.7 kB / 0.914 GB, free: 14.2 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003676/2.414, allocations: 1.233 MB / 0.9152 GB, free: 13.17 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/2.414, allocations: 0 / 0.9152 GB, free: 13.17 MB / 0.7637 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.0008881/2.415, allocations: 0.6598 MB / 0.9159 GB, free: 12.71 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 3.681e-05/2.415, allocations: 36.44 kB / 0.9159 GB, free: 12.68 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.988e-06/2.415, allocations: 4 kB / 0.9159 GB, free: 12.67 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002231/2.418, allocations: 0.703 MB / 0.9166 GB, free: 12.02 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.704e-05/2.418, allocations: 30.58 kB / 0.9166 GB, free: 11.99 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009165/2.419, allocations: 0.9384 MB / 0.9175 GB, free: 11.2 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002957/2.419, allocations: 62.58 kB / 0.9176 GB, free: 11.14 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.14e-05/2.419, allocations: 12 kB / 0.9176 GB, free: 11.13 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,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0002426/2.419, allocations: 211.6 kB / 0.9178 GB, free: 10.95 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.591e-05/2.419, allocations: 47.34 kB / 0.9179 GB, free: 10.9 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001459/2.421, allocations: 1.132 MB / 0.919 GB, free: 10.08 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0008701/2.422, allocations: 0.6926 MB / 0.9196 GB, free: 9.598 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/2.422, allocations: 6.906 kB / 0.9196 GB, free: 9.594 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/2.422, allocations: 3.984 kB / 0.9197 GB, free: 9.59 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002049/2.424, allocations: 1.695 MB / 0.9213 GB, free: 8.312 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/2.424, allocations: 2.734 kB / 0.9213 GB, free: 8.312 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001487/2.424, allocations: 50.89 kB / 0.9214 GB, free: 8.266 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001961/2.426, allocations: 0.7163 MB / 0.9221 GB, free: 7.609 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.787e-05/2.426, allocations: 14.28 kB / 0.9221 GB, free: 7.605 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008817/2.427, allocations: 0.9942 MB / 0.923 GB, free: 6.777 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/2.427, allocations: 0 / 0.923 GB, free: 6.777 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009196/2.428, allocations: 0.8204 MB / 0.9238 GB, free: 6.16 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002188/2.428, allocations: 201.9 kB / 0.924 GB, free: 5.969 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.446e-05/2.428, allocations: 11.38 kB / 0.924 GB, free: 5.965 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000259/2.428, allocations: 15.38 kB / 0.9241 GB, free: 5.957 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.341e-05/2.428, allocations: 35.94 kB / 0.9241 GB, free: 5.926 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.449e-05/2.429, allocations: 15.81 kB / 0.9241 GB, free: 5.914 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0003024/2.429, allocations: 320.9 kB / 0.9244 GB, free: 5.672 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.51e-07/2.429, allocations: 0 / 0.9244 GB, free: 5.672 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.003919/2.433, allocations: 1.544 MB / 0.9259 GB, free: 4.23 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 (36): * Single equations (assignments): 34 * 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,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007353/2.44, allocations: 2.337 MB / 0.9282 GB, free: 2.219 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.001185/2.441, allocations: 0.698 MB / 0.9289 GB, free: 1.668 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/2.441, allocations: 0 / 0.9289 GB, free: 1.668 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0006146/2.442, allocations: 376 kB / 0.9292 GB, free: 1.391 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001267/2.443, allocations: 224.6 kB / 0.9295 GB, free: 1.215 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00181/2.445, allocations: 1.357 MB / 0.9308 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000401/2.445, allocations: 0.8987 MB / 0.9317 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0002273/2.446, allocations: 54.34 kB / 0.9317 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.14e-05/2.446, allocations: 39.92 kB / 0.9318 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of SimCode: time 3.71e-07/2.446, allocations: 0 / 0.9318 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of Templates: time 0.2279/2.674, allocations: 52.76 MB / 0.9833 GB, free: 460.4 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.pipe 2>&1) Environment - environmentSimulation: