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.7456/0.7456, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.449e-05/1.449e-05, allocations: 4 kB / 204.8 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1335/0.1335, allocations: 31.97 MB / 236.8 MB, free: 5.391 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.TestIdealSwitchValve): time 1.42/1.554, allocations: 294.4 MB / 0.5187 GB, free: 12.71 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1692/1.723, allocations: 185.5 MB / 0.6998 GB, free: 2.844 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002521/1.723, allocations: 4 kB / 0.6999 GB, free: 2.84 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002997/1.724, allocations: 95.41 kB / 0.6999 GB, free: 2.746 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003665/1.724, allocations: 150.8 kB / 0.7001 GB, free: 2.598 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.2612/1.985, allocations: 8.831 MB / 0.7087 GB, free: 5.977 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0006839/1.986, allocations: 0.5858 MB / 0.7093 GB, free: 5.977 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002889/1.986, allocations: 198.1 kB / 0.7095 GB, free: 5.961 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003627/1.987, allocations: 215.4 kB / 0.7097 GB, free: 5.961 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002694/1.987, allocations: 197.2 kB / 0.7099 GB, free: 5.961 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.654e-05/1.987, allocations: 15.91 kB / 0.7099 GB, free: 5.961 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02898/2.016, allocations: 20.16 MB / 0.7296 GB, free: 5.867 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001164/2.016, allocations: 62.05 kB / 0.7296 GB, free: 5.867 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003255/2.017, allocations: 258.3 kB / 0.7299 GB, free: 5.836 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01728/2.034, allocations: 9.915 MB / 0.7396 GB, free: 3.055 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/2.034, allocations: 2.906 kB / 0.7396 GB, free: 3.055 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.443e-06/2.034, allocations: 0 / 0.7396 GB, free: 3.055 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.277e-05/2.034, allocations: 0 / 0.7396 GB, free: 3.055 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.004172/2.038, allocations: 1.83 MB / 0.7414 GB, free: 1.828 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.262e-05/2.038, allocations: 8 kB / 0.7414 GB, free: 1.828 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.598e-05/2.038, allocations: 54.47 kB / 0.7414 GB, free: 1.801 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002744/2.039, allocations: 316.1 kB / 0.7417 GB, free: 1.539 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.318e-05/2.039, allocations: 60.45 kB / 0.7418 GB, free: 1.508 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.201e-05/2.039, allocations: 37.62 kB / 0.7418 GB, free: 1.504 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000565/2.039, allocations: 0.509 MB / 0.7423 GB, free: 1.285 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/2.039, allocations: 5.844 kB / 0.7423 GB, free: 1.285 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.031e-05/2.039, allocations: 17.91 kB / 0.7423 GB, free: 1.285 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.692e-05/2.039, allocations: 18.98 kB / 0.7423 GB, free: 1.281 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003844/2.04, allocations: 313.3 kB / 0.7426 GB, free: 1.25 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.03432/2.074, allocations: 19.33 MB / 0.7615 GB, free: 3.02 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005629/2.075, allocations: 304.5 kB / 0.7618 GB, free: 2.969 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001977/2.075, allocations: 172.3 kB / 0.762 GB, free: 2.945 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2831/2.358, allocations: 151.7 MB / 0.9102 GB, free: 1.867 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003924/2.358, allocations: 265.9 kB / 0.9104 GB, free: 1.648 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=60): time 2.084e-06/2.358, allocations: 0 / 0.9104 GB, free: 1.648 MB / 0.7481 GB Notification: Performance of matching and sorting (n=60): time 0.002312/2.361, allocations: 0.9457 MB / 0.9113 GB, free: 0.8945 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.641e-05/2.361, allocations: 161.8 kB / 0.9115 GB, free: 0.7031 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003249/2.361, allocations: 351.7 kB / 0.9118 GB, free: 428 kB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.384e-05/2.361, allocations: 29.58 kB / 0.9119 GB, free: 396 kB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/2.361, allocations: 216.3 kB / 0.9121 GB, free: 220 kB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001162/2.361, allocations: 192.5 kB / 0.9122 GB, free: 52 kB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.718e-05/2.361, allocations: 60.25 kB / 0.9123 GB, free: 4 kB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001139/2.362, allocations: 356.1 kB / 0.9126 GB, free: 15.67 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001843/2.362, allocations: 132 kB / 0.9128 GB, free: 15.59 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002219/2.362, allocations: 216.7 kB / 0.913 GB, free: 15.41 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003039/2.365, allocations: 1.079 MB / 0.914 GB, free: 14.51 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/2.365, allocations: 0 / 0.914 GB, free: 14.51 MB / 0.7637 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007833/2.366, allocations: 0.5871 MB / 0.9146 GB, free: 14.1 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 3.369e-05/2.366, allocations: 42.89 kB / 0.9146 GB, free: 14.06 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/2.366, allocations: 0 / 0.9146 GB, free: 14.06 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001619/2.367, allocations: 0.501 MB / 0.9151 GB, free: 13.59 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.602e-05/2.368, allocations: 27.08 kB / 0.9152 GB, free: 13.57 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007403/2.368, allocations: 0.8405 MB / 0.916 GB, free: 12.84 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002552/2.369, allocations: 58.97 kB / 0.916 GB, free: 12.79 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.64e-05/2.369, allocations: 17.84 kB / 0.9161 GB, free: 12.77 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.0002214/2.369, allocations: 198.1 kB / 0.9162 GB, free: 12.59 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.599e-05/2.369, allocations: 47.38 kB / 0.9163 GB, free: 12.55 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001251/2.37, allocations: 0.9371 MB / 0.9172 GB, free: 11.83 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0006935/2.371, allocations: 0.546 MB / 0.9177 GB, free: 11.44 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/2.371, allocations: 0 / 0.9177 GB, free: 11.44 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/2.371, allocations: 0 / 0.9177 GB, free: 11.44 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001808/2.373, allocations: 1.427 MB / 0.9191 GB, free: 10.33 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/2.373, allocations: 0 / 0.9191 GB, free: 10.33 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001117/2.373, allocations: 38.89 kB / 0.9192 GB, free: 10.3 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001322/2.374, allocations: 492 kB / 0.9196 GB, free: 9.863 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.118e-05/2.374, allocations: 11.69 kB / 0.9196 GB, free: 9.855 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000712/2.375, allocations: 0.8978 MB / 0.9205 GB, free: 9.086 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/2.375, allocations: 7.984 kB / 0.9205 GB, free: 9.078 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009259/2.376, allocations: 0.6917 MB / 0.9212 GB, free: 8.535 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001646/2.376, allocations: 190.1 kB / 0.9214 GB, free: 8.355 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.282e-05/2.376, allocations: 3.5 kB / 0.9214 GB, free: 8.355 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000208/2.376, allocations: 15.88 kB / 0.9214 GB, free: 8.344 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.887e-05/2.376, allocations: 35.27 kB / 0.9214 GB, free: 8.316 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.862e-05/2.376, allocations: 12 kB / 0.9215 GB, free: 8.305 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002861/2.377, allocations: 315.6 kB / 0.9218 GB, free: 8.07 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.31e-07/2.377, allocations: 0 / 0.9218 GB, free: 8.07 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.003358/2.38, allocations: 1.529 MB / 0.9232 GB, free: 6.641 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.006281/2.386, allocations: 2.322 MB / 0.9255 GB, free: 4.633 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0008859/2.387, allocations: 0.5626 MB / 0.9261 GB, free: 4.191 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/2.387, allocations: 0 / 0.9261 GB, free: 4.191 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0004784/2.388, allocations: 314.8 kB / 0.9264 GB, free: 3.953 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001003/2.389, allocations: 182 kB / 0.9265 GB, free: 3.812 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001311/2.39, allocations: 1.154 MB / 0.9277 GB, free: 2.734 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000338/2.39, allocations: 0.8651 MB / 0.9285 GB, free: 1.84 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0001703/2.391, allocations: 47.27 kB / 0.9286 GB, free: 1.793 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.097e-05/2.391, allocations: 35.19 kB / 0.9286 GB, free: 1.762 MB / 0.7637 GB Notification: Performance of SimCode: time 3.01e-07/2.391, allocations: 0 / 0.9286 GB, free: 1.762 MB / 0.7637 GB Notification: Performance of Templates: time 0.2056/2.596, allocations: 51.05 MB / 0.9784 GB, free: 459.6 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: