Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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.SimpleExamples.TestSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7446/0.7446, allocations: 150.8 MB / 166.1 MB, free: 15.4 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.684e-05/1.686e-05, allocations: 4 kB / 204.8 MB, free: 10.07 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1346, allocations: 31.98 MB / 236.8 MB, free: 5.422 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.SimpleExamples.TestSwitchValve): time 1.43/1.565, allocations: 294.6 MB / 0.5189 GB, free: 12.54 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1683/1.733, allocations: 185.5 MB / 0.7001 GB, free: 2.641 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003369/1.734, allocations: 4 kB / 0.7001 GB, free: 2.637 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0003293/1.734, allocations: 103.4 kB / 0.7002 GB, free: 2.535 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003789/1.734, allocations: 170.7 kB / 0.7004 GB, free: 2.367 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.2718/2.006, allocations: 8.848 MB / 0.709 GB, free: 5.578 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0007889/2.007, allocations: 0.6582 MB / 0.7096 GB, free: 5.578 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003022/2.007, allocations: 207.2 kB / 0.7098 GB, free: 5.559 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003507/2.008, allocations: 236.7 kB / 0.7101 GB, free: 5.559 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002626/2.008, allocations: 217.4 kB / 0.7103 GB, free: 5.559 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.965e-05/2.008, allocations: 19.72 kB / 0.7103 GB, free: 5.559 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02995/2.038, allocations: 20.16 MB / 0.73 GB, free: 5.469 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001431/2.038, allocations: 74.73 kB / 0.7301 GB, free: 5.469 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003935/2.038, allocations: 278.5 kB / 0.7303 GB, free: 5.438 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01942/2.058, allocations: 9.96 MB / 0.74 GB, free: 2.59 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/2.058, allocations: 0 / 0.74 GB, free: 2.59 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.804e-06/2.058, allocations: 2.25 kB / 0.74 GB, free: 2.59 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.664e-06/2.058, allocations: 0 / 0.74 GB, free: 2.59 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.004597/2.062, allocations: 1.865 MB / 0.7419 GB, free: 1.34 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/2.063, allocations: 9.281 kB / 0.7419 GB, free: 1.34 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.29e-05/2.063, allocations: 60.22 kB / 0.7419 GB, free: 1.309 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002751/2.063, allocations: 337 kB / 0.7423 GB, free: 1.039 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.008e-05/2.063, allocations: 59.89 kB / 0.7423 GB, free: 1.008 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.79e-05/2.063, allocations: 41.03 kB / 0.7424 GB, free: 1.004 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006111/2.064, allocations: 0.5498 MB / 0.7429 GB, free: 0.7773 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/2.064, allocations: 3.531 kB / 0.7429 GB, free: 0.7773 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.19e-05/2.064, allocations: 14.5 kB / 0.7429 GB, free: 0.7773 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.058e-05/2.064, allocations: 30.25 kB / 0.7429 GB, free: 0.7695 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004031/2.064, allocations: 348 kB / 0.7433 GB, free: 0.7344 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.03443/2.099, allocations: 19.5 MB / 0.7623 GB, free: 2.379 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000647/2.099, allocations: 325.3 kB / 0.7626 GB, free: 2.328 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002273/2.099, allocations: 196.5 kB / 0.7628 GB, free: 2.301 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2878/2.387, allocations: 151.8 MB / 0.911 GB, free: 0.9297 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004573/2.388, allocations: 291.4 kB / 0.9113 GB, free: 0.6992 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=71): time 1.953e-06/2.388, allocations: 0 / 0.9113 GB, free: 0.6992 MB / 0.7481 GB Notification: Performance of matching and sorting (n=71): time 0.00298/2.391, allocations: 1.123 MB / 0.9124 GB, free: 15.81 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.599e-05/2.391, allocations: 170 kB / 0.9125 GB, free: 15.61 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003485/2.391, allocations: 355.2 kB / 0.9129 GB, free: 15.32 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 2.621e-05/2.391, allocations: 29.77 kB / 0.9129 GB, free: 15.29 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001323/2.391, allocations: 231.2 kB / 0.9131 GB, free: 15.11 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001454/2.392, allocations: 228.1 kB / 0.9133 GB, free: 14.91 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.578e-05/2.392, allocations: 60.05 kB / 0.9134 GB, free: 14.87 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001095/2.392, allocations: 352.9 kB / 0.9137 GB, free: 14.54 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002168/2.392, allocations: 152 kB / 0.9139 GB, free: 14.45 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002531/2.392, allocations: 251.1 kB / 0.9141 GB, free: 14.25 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003673/2.396, allocations: 1.227 MB / 0.9153 GB, free: 13.23 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/2.396, allocations: 4 kB / 0.9153 GB, free: 13.22 MB / 0.7637 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.0008938/2.397, allocations: 0.6596 MB / 0.916 GB, free: 12.77 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 3.231e-05/2.397, allocations: 29.7 kB / 0.916 GB, free: 12.73 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/2.397, allocations: 4 kB / 0.916 GB, free: 12.73 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002243/2.399, allocations: 0.7094 MB / 0.9167 GB, free: 12.07 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/2.399, allocations: 22.89 kB / 0.9167 GB, free: 12.05 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008919/2.4, allocations: 0.9323 MB / 0.9176 GB, free: 11.27 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002808/2.4, allocations: 58.95 kB / 0.9177 GB, free: 11.21 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.927e-05/2.4, allocations: 15.69 kB / 0.9177 GB, free: 11.2 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.0002343/2.401, allocations: 213.5 kB / 0.9179 GB, free: 11.02 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.854e-05/2.401, allocations: 47.34 kB / 0.918 GB, free: 10.97 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001411/2.402, allocations: 1.139 MB / 0.9191 GB, free: 10.14 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0008602/2.403, allocations: 0.6961 MB / 0.9197 GB, free: 9.656 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/2.403, allocations: 0 / 0.9197 GB, free: 9.656 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/2.403, allocations: 4 kB / 0.9197 GB, free: 9.652 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00198/2.405, allocations: 1.689 MB / 0.9214 GB, free: 8.383 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/2.405, allocations: 0 / 0.9214 GB, free: 8.383 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001484/2.405, allocations: 54.58 kB / 0.9214 GB, free: 8.336 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001958/2.407, allocations: 0.7164 MB / 0.9221 GB, free: 7.68 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.796e-05/2.407, allocations: 15.38 kB / 0.9222 GB, free: 7.672 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008515/2.408, allocations: 0.9993 MB / 0.9231 GB, free: 6.84 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/2.408, allocations: 0 / 0.9231 GB, free: 6.84 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008627/2.409, allocations: 0.8165 MB / 0.9239 GB, free: 6.227 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001868/2.409, allocations: 197.8 kB / 0.9241 GB, free: 6.039 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.029e-05/2.409, allocations: 11.38 kB / 0.9241 GB, free: 6.035 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002392/2.409, allocations: 23.36 kB / 0.9242 GB, free: 6.02 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.173e-05/2.41, allocations: 35.77 kB / 0.9242 GB, free: 5.992 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-05/2.41, allocations: 15.62 kB / 0.9242 GB, free: 5.98 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002885/2.41, allocations: 320.8 kB / 0.9245 GB, free: 5.738 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.61e-07/2.41, allocations: 0 / 0.9245 GB, free: 5.738 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.004526/2.414, allocations: 1.541 MB / 0.926 GB, free: 4.297 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.006689/2.421, allocations: 2.339 MB / 0.9283 GB, free: 2.281 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.00106/2.422, allocations: 0.6933 MB / 0.929 GB, free: 1.738 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/2.422, allocations: 0.625 kB / 0.929 GB, free: 1.738 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.000571/2.423, allocations: 373.4 kB / 0.9293 GB, free: 1.465 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001234/2.424, allocations: 231.6 kB / 0.9296 GB, free: 1.277 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001624/2.426, allocations: 1.353 MB / 0.9309 GB, free: 28 kB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003882/2.426, allocations: 0.8948 MB / 0.9318 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.000211/2.426, allocations: 59.27 kB / 0.9318 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.031e-05/2.426, allocations: 36.06 kB / 0.9318 GB, free: 15 MB / 0.7794 GB Notification: Performance of SimCode: time 2.91e-07/2.426, allocations: 0 / 0.9318 GB, free: 15 MB / 0.7794 GB Notification: Performance of Templates: time 0.3166/2.743, allocations: 52.76 MB / 0.9834 GB, free: 246.1 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValve.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValve.pipe 2>&1) Environment - environmentSimulation: