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: "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.824/0.824, allocations: 150.8 MB / 166.1 MB, free: 15.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.517e-05/1.52e-05, allocations: 4 kB / 204.9 MB, free: 9.969 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1478/0.1478, allocations: 31.98 MB / 236.8 MB, free: 5.414 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.642/1.79, allocations: 294.6 MB / 0.519 GB, free: 13.28 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0409/1.831, allocations: 37.34 MB / 0.5555 GB, free: 8.082 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001668/1.831, allocations: 4 kB / 0.5555 GB, free: 8.078 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003772/1.832, allocations: 135.5 kB / 0.5556 GB, free: 7.945 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000217/1.832, allocations: 127.3 kB / 0.5557 GB, free: 7.82 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01912/1.851, allocations: 7.423 MB / 0.563 GB, free: 408 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004946/1.851, allocations: 362.3 kB / 0.5633 GB, free: 44 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002091/1.852, allocations: 120.1 kB / 0.5634 GB, free: 15.92 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002076/1.852, allocations: 139.3 kB / 0.5636 GB, free: 15.79 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001718/1.852, allocations: 155.3 kB / 0.5637 GB, free: 15.63 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 2.1e-05/1.852, allocations: 11.94 kB / 0.5637 GB, free: 15.62 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02758/1.88, allocations: 17.88 MB / 0.5812 GB, free: 13.72 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001351/1.88, allocations: 63.7 kB / 0.5813 GB, free: 13.66 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001912/1.88, allocations: 168.8 kB / 0.5814 GB, free: 13.48 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01715/1.897, allocations: 8.448 MB / 0.5897 GB, free: 5.016 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/1.897, allocations: 0 / 0.5897 GB, free: 5.016 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.684e-06/1.897, allocations: 0 / 0.5897 GB, free: 5.016 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.131e-05/1.897, allocations: 0 / 0.5897 GB, free: 5.016 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.004046/1.901, allocations: 1.466 MB / 0.5911 GB, free: 3.504 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/1.901, allocations: 8.031 kB / 0.5911 GB, free: 3.496 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.274e-05/1.901, allocations: 70.47 kB / 0.5912 GB, free: 3.418 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.715e-05/1.902, allocations: 39.47 kB / 0.5912 GB, free: 3.379 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003017/1.902, allocations: 302.1 kB / 0.5915 GB, free: 3.047 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.329e-05/1.902, allocations: 12.44 kB / 0.5915 GB, free: 3.031 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.841e-05/1.902, allocations: 23.94 kB / 0.5915 GB, free: 3.008 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004439/1.902, allocations: 307.5 kB / 0.5918 GB, free: 2.684 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/1.902, allocations: 7.938 kB / 0.5918 GB, free: 2.676 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.203e-05/1.902, allocations: 12.94 kB / 0.5918 GB, free: 2.664 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.987e-05/1.902, allocations: 19.92 kB / 0.5919 GB, free: 2.645 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002887/1.903, allocations: 205.1 kB / 0.5921 GB, free: 2.445 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.03831/1.941, allocations: 18.24 MB / 0.6099 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002228/1.941, allocations: 146.5 kB / 0.61 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001226/1.941, allocations: 108.8 kB / 0.6101 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1581/2.1, allocations: 77.94 MB / 0.6862 GB, free: 7.359 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.452e-05/2.1, allocations: 30.56 kB / 0.6863 GB, free: 7.32 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 1.933e-06/2.1, allocations: 0 / 0.6863 GB, free: 7.32 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001116/2.101, allocations: 0.5037 MB / 0.6868 GB, free: 6.789 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.485e-05/2.101, allocations: 55.34 kB / 0.6868 GB, free: 6.723 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004051/2.101, allocations: 360.4 kB / 0.6871 GB, free: 6.363 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.603e-05/2.101, allocations: 25.7 kB / 0.6872 GB, free: 6.332 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/2.101, allocations: 184.5 kB / 0.6873 GB, free: 6.148 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.8e-05/2.101, allocations: 110.3 kB / 0.6875 GB, free: 6.039 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.237e-05/2.101, allocations: 33.7 kB / 0.6875 GB, free: 6 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000111/2.102, allocations: 346.8 kB / 0.6878 GB, free: 5.652 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001233/2.102, allocations: 91.91 kB / 0.6879 GB, free: 5.562 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001431/2.102, allocations: 141.1 kB / 0.688 GB, free: 5.41 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002869/2.102, allocations: 252.5 kB / 0.6883 GB, free: 5.148 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/2.102, allocations: 0 / 0.6883 GB, free: 5.148 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004824/2.103, allocations: 341.5 kB / 0.6886 GB, free: 4.805 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/2.103, allocations: 8.125 kB / 0.6886 GB, free: 4.797 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/2.103, allocations: 4 kB / 0.6886 GB, free: 4.793 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008881/2.104, allocations: 172.6 kB / 0.6888 GB, free: 4.621 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.015e-05/2.104, allocations: 11.94 kB / 0.6888 GB, free: 4.609 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005069/2.104, allocations: 0.6148 MB / 0.6894 GB, free: 3.969 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000128/2.104, allocations: 23.59 kB / 0.6894 GB, free: 3.945 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.657e-05/2.104, allocations: 12 kB / 0.6894 GB, free: 3.934 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.0001452/2.105, allocations: 159.2 kB / 0.6896 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.177e-05/2.105, allocations: 27.69 kB / 0.6896 GB, free: 3.742 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008226/2.105, allocations: 0.6532 MB / 0.6902 GB, free: 3.012 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004231/2.106, allocations: 261.9 kB / 0.6905 GB, free: 2.75 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/2.106, allocations: 4 kB / 0.6905 GB, free: 2.746 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/2.106, allocations: 0 / 0.6905 GB, free: 2.746 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001066/2.107, allocations: 0.8316 MB / 0.6913 GB, free: 1.855 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/2.107, allocations: 0 / 0.6913 GB, free: 1.855 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.038e-05/2.107, allocations: 23.98 kB / 0.6913 GB, free: 1.832 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005132/2.108, allocations: 124.7 kB / 0.6915 GB, free: 1.707 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/2.108, allocations: 7.938 kB / 0.6915 GB, free: 1.699 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000457/2.108, allocations: 0.6397 MB / 0.6921 GB, free: 1.035 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/2.108, allocations: 4 kB / 0.6921 GB, free: 1.031 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004846/2.109, allocations: 383.8 kB / 0.6925 GB, free: 0.6367 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001298/2.109, allocations: 152.5 kB / 0.6926 GB, free: 480 kB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.218e-05/2.109, allocations: 8 kB / 0.6926 GB, free: 472 kB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001181/2.109, allocations: 3.938 kB / 0.6926 GB, free: 468 kB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.818e-05/2.109, allocations: 11.98 kB / 0.6926 GB, free: 456 kB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.215e-05/2.109, allocations: 12 kB / 0.6926 GB, free: 444 kB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003286/2.109, allocations: 331.1 kB / 0.6929 GB, free: 116 kB / 0.5762 GB Notification: Performance of sort global known variables: time 2.21e-07/2.109, allocations: 0 / 0.6929 GB, free: 116 kB / 0.5762 GB Notification: Performance of remove unused functions: time 0.1855/2.295, allocations: 1.199 MB / 0.6941 GB, free: 228.4 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.005387/2.3, allocations: 2.597 MB / 0.6967 GB, free: 227.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006073/2.301, allocations: 282.8 kB / 0.6969 GB, free: 227.7 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/2.301, allocations: 0 / 0.6969 GB, free: 227.7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002967/2.301, allocations: 123.6 kB / 0.697 GB, free: 227.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008216/2.302, allocations: 120.3 kB / 0.6972 GB, free: 227.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004428/2.306, allocations: 3.841 MB / 0.7009 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002364/2.307, allocations: 0.8023 MB / 0.7017 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001374/2.307, allocations: 30.08 kB / 0.7017 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001211/2.307, allocations: 130 kB / 0.7018 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of SimCode: time 2.31e-07/2.307, allocations: 0 / 0.7018 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06345/2.37, allocations: 48.02 MB / 0.7487 GB, free: 197.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001315/2.371, allocations: 231.5 kB / 0.749 GB, free: 196.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.905/6.275, allocations: 0 / 0.749 GB, free: 196.9 MB / 0.5762 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve_fmu --startTime=0 --stopTime=80 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe 2>&1)