Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.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.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.9511/0.9511, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 2.096e-05/2.104e-05, allocations: 4 kB / 204.8 MB, free: 10.06 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2132/0.2132, allocations: 31.97 MB / 236.8 MB, free: 5.43 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.TestControlValve): time 1.909/2.122, allocations: 293.7 MB / 0.518 GB, free: 13.42 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.05198/2.174, allocations: 37.35 MB / 0.5545 GB, free: 8.215 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002733/2.174, allocations: 0 / 0.5545 GB, free: 8.215 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005499/2.175, allocations: 131.5 kB / 0.5546 GB, free: 8.086 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000431/2.175, allocations: 143.2 kB / 0.5547 GB, free: 7.945 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02624/2.202, allocations: 7.419 MB / 0.562 GB, free: 0.5273 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007857/2.203, allocations: 370.3 kB / 0.5623 GB, free: 168 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002531/2.203, allocations: 108.6 kB / 0.5624 GB, free: 60 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002798/2.203, allocations: 135.4 kB / 0.5626 GB, free: 15.92 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002002/2.203, allocations: 155.3 kB / 0.5627 GB, free: 15.77 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 2.49e-05/2.203, allocations: 8 kB / 0.5627 GB, free: 15.76 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03569/2.239, allocations: 17.88 MB / 0.5802 GB, free: 13.86 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002683/2.239, allocations: 63.7 kB / 0.5802 GB, free: 13.8 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003445/2.24, allocations: 168.8 kB / 0.5804 GB, free: 13.63 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03162/2.271, allocations: 8.444 MB / 0.5886 GB, free: 5.16 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/2.271, allocations: 4 kB / 0.5886 GB, free: 5.156 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.465e-06/2.271, allocations: 0 / 0.5886 GB, free: 5.156 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.763e-06/2.271, allocations: 0 / 0.5886 GB, free: 5.156 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.005156/2.277, allocations: 1.47 MB / 0.5901 GB, free: 3.637 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.733e-05/2.277, allocations: 12.03 kB / 0.5901 GB, free: 3.625 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.312e-05/2.277, allocations: 39.47 kB / 0.5901 GB, free: 3.586 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000338/2.277, allocations: 286.1 kB / 0.5904 GB, free: 3.27 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.461e-05/2.277, allocations: 20.44 kB / 0.5904 GB, free: 3.246 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.43e-05/2.277, allocations: 24 kB / 0.5904 GB, free: 3.223 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004662/2.278, allocations: 323.3 kB / 0.5907 GB, free: 2.883 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/2.278, allocations: 0 / 0.5907 GB, free: 2.883 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.159e-05/2.278, allocations: 12 kB / 0.5908 GB, free: 2.871 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.968e-05/2.278, allocations: 12 kB / 0.5908 GB, free: 2.859 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002903/2.278, allocations: 212.9 kB / 0.591 GB, free: 2.652 MB / 478.1 MB 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.03849/2.317, allocations: 18.25 MB / 0.6088 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002468/2.317, allocations: 142.5 kB / 0.6089 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001396/2.317, allocations: 104.8 kB / 0.609 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1596/2.477, allocations: 77.95 MB / 0.6851 GB, free: 7.559 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.664e-05/2.477, allocations: 34.56 kB / 0.6852 GB, free: 7.516 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.034e-06/2.477, allocations: 0 / 0.6852 GB, free: 7.516 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.00126/2.478, allocations: 0.4914 MB / 0.6857 GB, free: 6.996 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.032e-05/2.478, allocations: 51.41 kB / 0.6857 GB, free: 6.934 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00041/2.478, allocations: 368.2 kB / 0.6861 GB, free: 6.566 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.654e-05/2.478, allocations: 29.7 kB / 0.6861 GB, free: 6.531 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001926/2.479, allocations: 180.5 kB / 0.6863 GB, free: 6.352 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.856e-05/2.479, allocations: 110.3 kB / 0.6864 GB, free: 6.242 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.648e-05/2.479, allocations: 33.7 kB / 0.6864 GB, free: 6.203 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001446/2.479, allocations: 350.8 kB / 0.6867 GB, free: 5.852 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001255/2.479, allocations: 87.97 kB / 0.6868 GB, free: 5.766 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001597/2.479, allocations: 136.2 kB / 0.6869 GB, free: 5.617 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003017/2.48, allocations: 252.5 kB / 0.6872 GB, free: 5.355 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/2.48, allocations: 0 / 0.6872 GB, free: 5.355 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004779/2.48, allocations: 337.5 kB / 0.6875 GB, free: 5.016 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/2.48, allocations: 8 kB / 0.6875 GB, free: 5.008 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/2.48, allocations: 80 / 0.6875 GB, free: 5.008 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009154/2.481, allocations: 172.8 kB / 0.6877 GB, free: 4.836 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.083e-05/2.481, allocations: 11.94 kB / 0.6877 GB, free: 4.824 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005989/2.482, allocations: 0.6265 MB / 0.6883 GB, free: 4.172 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001442/2.482, allocations: 27.62 kB / 0.6883 GB, free: 4.145 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.66e-05/2.482, allocations: 4 kB / 0.6883 GB, free: 4.141 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (ControlValve.C2.b,ControlValve.C1.a,PuitsP1.C.a,SourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * 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 {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001754/2.482, allocations: 158.5 kB / 0.6885 GB, free: 3.977 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.458e-05/2.482, allocations: 31.56 kB / 0.6885 GB, free: 3.945 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000861/2.483, allocations: 0.6512 MB / 0.6892 GB, free: 3.215 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004243/2.483, allocations: 262.3 kB / 0.6894 GB, free: 2.949 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/2.483, allocations: 0 / 0.6894 GB, free: 2.949 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/2.483, allocations: 4 kB / 0.6894 GB, free: 2.945 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001079/2.485, allocations: 0.8223 MB / 0.6902 GB, free: 2.066 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.037e-06/2.485, allocations: 11.98 kB / 0.6902 GB, free: 2.055 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.405e-05/2.485, allocations: 12 kB / 0.6902 GB, free: 2.043 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005114/2.485, allocations: 134.1 kB / 0.6904 GB, free: 1.91 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.41e-05/2.485, allocations: 12 kB / 0.6904 GB, free: 1.898 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004938/2.486, allocations: 0.6342 MB / 0.691 GB, free: 1.238 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/2.486, allocations: 7.875 kB / 0.691 GB, free: 1.23 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005127/2.486, allocations: 393.7 kB / 0.6914 GB, free: 0.8281 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001341/2.486, allocations: 144.6 kB / 0.6915 GB, free: 0.668 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.065e-05/2.486, allocations: 4 kB / 0.6915 GB, free: 0.6641 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001113/2.487, allocations: 7.906 kB / 0.6915 GB, free: 0.6562 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.791e-05/2.487, allocations: 11.92 kB / 0.6915 GB, free: 0.6445 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.065e-05/2.487, allocations: 8 kB / 0.6915 GB, free: 0.6367 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003366/2.487, allocations: 331.1 kB / 0.6919 GB, free: 324 kB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/2.487, allocations: 7.938 kB / 0.6919 GB, free: 316 kB / 0.5762 GB Notification: Performance of remove unused functions: time 0.3406/2.828, allocations: 1.197 MB / 0.693 GB, free: 141.1 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * 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 {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007604/2.835, allocations: 1.78 MB / 0.6948 GB, free: 141 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0009343/2.836, allocations: 270.4 kB / 0.695 GB, free: 141 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.646e-06/2.836, allocations: 4.656 kB / 0.695 GB, free: 141 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000344/2.837, allocations: 113.8 kB / 0.6951 GB, free: 141 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009829/2.838, allocations: 127.4 kB / 0.6953 GB, free: 141 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001364/2.839, allocations: 0.8079 MB / 0.6961 GB, free: 140.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003443/2.839, allocations: 0.8042 MB / 0.6968 GB, free: 139.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001483/2.839, allocations: 32.27 kB / 0.6969 GB, free: 139.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.988e-05/2.84, allocations: 22.91 kB / 0.6969 GB, free: 139.9 MB / 0.5762 GB Notification: Performance of SimCode: time 4.81e-07/2.84, allocations: 1.031 kB / 0.6969 GB, free: 139.9 MB / 0.5762 GB Notification: Performance of Templates: time 0.05215/2.892, allocations: 42.53 MB / 0.7384 GB, free: 112.4 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe 2>&1) Environment - environmentSimulation: