Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.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.Book.SimpleExamples.PressureLoss.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_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.9047/0.9047, allocations: 150.8 MB / 166.1 MB, free: 15.42 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.727e-05/1.728e-05, allocations: 0 / 204.9 MB, free: 9.957 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2279/0.228, allocations: 31.99 MB / 236.8 MB, free: 4.809 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.TestControlValve): time 1.717/1.945, allocations: 294.5 MB / 0.5189 GB, free: 13.26 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04419/1.989, allocations: 37.34 MB / 0.5554 GB, free: 8.062 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002379/1.989, allocations: 4 kB / 0.5554 GB, free: 8.059 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004181/1.99, allocations: 127.5 kB / 0.5555 GB, free: 7.934 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002444/1.99, allocations: 131.3 kB / 0.5556 GB, free: 7.805 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02072/2.011, allocations: 7.42 MB / 0.5629 GB, free: 392 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005677/2.011, allocations: 366.3 kB / 0.5632 GB, free: 24 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002351/2.012, allocations: 122.2 kB / 0.5634 GB, free: 15.9 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002271/2.012, allocations: 135.3 kB / 0.5635 GB, free: 15.77 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001787/2.012, allocations: 151.3 kB / 0.5636 GB, free: 15.62 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 2.021e-05/2.012, allocations: 12 kB / 0.5636 GB, free: 15.61 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02957/2.042, allocations: 17.88 MB / 0.5811 GB, free: 13.7 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001429/2.042, allocations: 63.7 kB / 0.5812 GB, free: 13.64 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002036/2.042, allocations: 172.8 kB / 0.5813 GB, free: 13.46 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01965/2.062, allocations: 8.448 MB / 0.5896 GB, free: 4.996 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/2.062, allocations: 0 / 0.5896 GB, free: 4.996 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.824e-06/2.062, allocations: 0 / 0.5896 GB, free: 4.996 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/2.062, allocations: 0 / 0.5896 GB, free: 4.996 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.004092/2.066, allocations: 1.466 MB / 0.591 GB, free: 3.48 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/2.066, allocations: 8.031 kB / 0.591 GB, free: 3.473 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.935e-05/2.066, allocations: 70.47 kB / 0.5911 GB, free: 3.395 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.32e-05/2.066, allocations: 39.47 kB / 0.5911 GB, free: 3.355 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003079/2.066, allocations: 298.1 kB / 0.5914 GB, free: 3.027 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.19e-05/2.067, allocations: 12.44 kB / 0.5914 GB, free: 3.012 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.988e-05/2.067, allocations: 24.55 kB / 0.5914 GB, free: 2.988 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004152/2.067, allocations: 307.5 kB / 0.5917 GB, free: 2.664 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/2.067, allocations: 7.938 kB / 0.5917 GB, free: 2.656 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.68e-05/2.067, allocations: 15.98 kB / 0.5918 GB, free: 2.641 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.676e-05/2.067, allocations: 18.28 kB / 0.5918 GB, free: 2.625 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002703/2.067, allocations: 205.1 kB / 0.592 GB, free: 2.426 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.03699/2.104, allocations: 18.23 MB / 0.6098 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002057/2.105, allocations: 147.9 kB / 0.6099 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000127/2.105, allocations: 104.8 kB / 0.61 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1534/2.258, allocations: 77.95 MB / 0.6861 GB, free: 7.344 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.879e-05/2.258, allocations: 30.56 kB / 0.6862 GB, free: 7.305 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.014e-06/2.258, allocations: 0 / 0.6862 GB, free: 7.305 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001131/2.259, allocations: 0.4992 MB / 0.6867 GB, free: 6.777 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.65e-05/2.259, allocations: 55.34 kB / 0.6867 GB, free: 6.711 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003752/2.26, allocations: 360.4 kB / 0.6871 GB, free: 6.348 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.49e-05/2.26, allocations: 25.7 kB / 0.6871 GB, free: 6.316 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/2.26, allocations: 184.5 kB / 0.6873 GB, free: 6.133 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.839e-05/2.26, allocations: 110.3 kB / 0.6874 GB, free: 6.023 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.538e-05/2.26, allocations: 33.7 kB / 0.6874 GB, free: 5.984 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001135/2.26, allocations: 346.8 kB / 0.6877 GB, free: 5.637 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000122/2.26, allocations: 87.97 kB / 0.6878 GB, free: 5.551 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001446/2.26, allocations: 141.2 kB / 0.6879 GB, free: 5.398 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002867/2.261, allocations: 256.5 kB / 0.6882 GB, free: 5.133 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/2.261, allocations: 0 / 0.6882 GB, free: 5.133 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004588/2.261, allocations: 337.5 kB / 0.6885 GB, free: 4.793 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/2.261, allocations: 8.125 kB / 0.6885 GB, free: 4.785 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/2.261, allocations: 4 kB / 0.6885 GB, free: 4.781 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008756/2.262, allocations: 172.6 kB / 0.6887 GB, free: 4.609 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.744e-05/2.262, allocations: 11.94 kB / 0.6887 GB, free: 4.598 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000561/2.263, allocations: 0.6164 MB / 0.6893 GB, free: 3.957 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001236/2.263, allocations: 23.59 kB / 0.6893 GB, free: 3.934 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.208e-05/2.263, allocations: 12 kB / 0.6893 GB, free: 3.922 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.0001531/2.263, allocations: 161.8 kB / 0.6895 GB, free: 3.754 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.947e-05/2.263, allocations: 27.62 kB / 0.6895 GB, free: 3.727 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008551/2.264, allocations: 0.653 MB / 0.6902 GB, free: 3 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004166/2.264, allocations: 266.3 kB / 0.6904 GB, free: 2.73 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/2.264, allocations: 0 / 0.6904 GB, free: 2.73 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/2.264, allocations: 4 kB / 0.6904 GB, free: 2.727 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001064/2.266, allocations: 0.8312 MB / 0.6912 GB, free: 1.84 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/2.266, allocations: 0 / 0.6912 GB, free: 1.84 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.846e-05/2.266, allocations: 19.98 kB / 0.6912 GB, free: 1.82 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005063/2.266, allocations: 126.7 kB / 0.6914 GB, free: 1.695 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.572e-05/2.266, allocations: 11.94 kB / 0.6914 GB, free: 1.684 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000493/2.267, allocations: 0.6342 MB / 0.692 GB, free: 1.023 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/2.267, allocations: 3.938 kB / 0.692 GB, free: 1.02 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004843/2.267, allocations: 387.8 kB / 0.6924 GB, free: 0.6211 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001251/2.267, allocations: 148.5 kB / 0.6925 GB, free: 468 kB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.104e-05/2.267, allocations: 8 kB / 0.6925 GB, free: 460 kB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001157/2.267, allocations: 7.844 kB / 0.6925 GB, free: 452 kB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.122e-05/2.268, allocations: 11.98 kB / 0.6925 GB, free: 440 kB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.686e-06/2.268, allocations: 4 kB / 0.6925 GB, free: 436 kB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003368/2.268, allocations: 335.1 kB / 0.6929 GB, free: 100 kB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/2.268, allocations: 0 / 0.6929 GB, free: 100 kB / 0.5762 GB Notification: Performance of remove unused functions: time 0.1699/2.438, allocations: 1.204 MB / 0.694 GB, free: 227.9 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.005513/2.443, allocations: 2.59 MB / 0.6966 GB, free: 227.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006031/2.444, allocations: 279.1 kB / 0.6968 GB, free: 227.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/2.444, allocations: 0 / 0.6968 GB, free: 227.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002731/2.444, allocations: 121.1 kB / 0.6969 GB, free: 227.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008146/2.445, allocations: 131.5 kB / 0.6971 GB, free: 227.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004407/2.45, allocations: 3.841 MB / 0.7008 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002381/2.45, allocations: 0.8022 MB / 0.7016 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001393/2.45, allocations: 35.19 kB / 0.7016 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001198/2.45, allocations: 123.7 kB / 0.7018 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of SimCode: time 7.61e-07/2.45, allocations: 0 / 0.7018 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06319/2.513, allocations: 48.04 MB / 0.7487 GB, free: 196.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001389/2.513, allocations: 257.3 kB / 0.7489 GB, free: 196.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.066/6.579, allocations: 0 / 0.7489 GB, free: 196.6 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve_fmu --startTime=0 --stopTime=80 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1)