Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.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.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend",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.8236/0.8236, allocations: 150.8 MB / 166.1 MB, free: 15.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.267e-05/1.268e-05, allocations: 0 / 204.9 MB, free: 9.965 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.178/0.178, allocations: 31.99 MB / 236.8 MB, free: 4.773 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.TestBend): time 1.757/1.935, allocations: 294.6 MB / 0.519 GB, free: 13.07 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.048/1.983, allocations: 37.67 MB / 0.5558 GB, free: 7.543 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002838/1.984, allocations: 4 kB / 0.5558 GB, free: 7.539 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000541/1.984, allocations: 243.3 kB / 0.556 GB, free: 7.301 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000389/1.984, allocations: 247 kB / 0.5563 GB, free: 7.059 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02436/2.009, allocations: 7.489 MB / 0.5636 GB, free: 15.57 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.000729/2.01, allocations: 474.8 kB / 0.564 GB, free: 15.1 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002566/2.01, allocations: 171.5 kB / 0.5642 GB, free: 14.93 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002987/2.01, allocations: 203.1 kB / 0.5644 GB, free: 14.73 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002975/2.01, allocations: 271.1 kB / 0.5646 GB, free: 14.46 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 2.903e-05/2.01, allocations: 12 kB / 0.5647 GB, free: 14.45 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03196/2.042, allocations: 17.95 MB / 0.5822 GB, free: 12.48 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002532/2.043, allocations: 163.4 kB / 0.5823 GB, free: 12.32 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003154/2.043, allocations: 276 kB / 0.5826 GB, free: 12.04 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02367/2.067, allocations: 8.771 MB / 0.5912 GB, free: 3.25 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/2.067, allocations: 0 / 0.5912 GB, free: 3.25 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.884e-06/2.067, allocations: 0 / 0.5912 GB, free: 3.25 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.277e-06/2.067, allocations: 0 / 0.5912 GB, free: 3.25 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.006608/2.073, allocations: 1.718 MB / 0.5928 GB, free: 1.48 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.405e-05/2.074, allocations: 15.97 kB / 0.5929 GB, free: 1.465 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.879e-05/2.074, allocations: 66.53 kB / 0.5929 GB, free: 1.391 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001247/2.074, allocations: 71.06 kB / 0.593 GB, free: 1.32 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006603/2.074, allocations: 490.3 kB / 0.5935 GB, free: 0.7969 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.397e-05/2.074, allocations: 20.56 kB / 0.5935 GB, free: 0.7773 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.207e-05/2.075, allocations: 31.88 kB / 0.5935 GB, free: 0.7461 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006249/2.075, allocations: 433.3 kB / 0.5939 GB, free: 296 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/2.075, allocations: 3.938 kB / 0.5939 GB, free: 292 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.938e-05/2.075, allocations: 12 kB / 0.5939 GB, free: 280 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.895e-05/2.075, allocations: 19.98 kB / 0.594 GB, free: 260 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004667/2.076, allocations: 333.8 kB / 0.5943 GB, free: 15.93 MB / 494.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.03788/2.114, allocations: 18.72 MB / 0.6126 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006203/2.114, allocations: 174.6 kB / 0.6127 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001411/2.114, allocations: 101.5 kB / 0.6128 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1558/2.27, allocations: 78.13 MB / 0.6891 GB, free: 4.125 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.606e-05/2.27, allocations: 42.5 kB / 0.6892 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=38): time 2.635e-06/2.27, allocations: 0 / 0.6892 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of matching and sorting (n=38): time 0.001842/2.272, allocations: 0.5928 MB / 0.6897 GB, free: 3.453 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.106e-05/2.272, allocations: 106.8 kB / 0.6898 GB, free: 3.324 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001276/2.273, allocations: 1.008 MB / 0.6908 GB, free: 2.305 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.191e-05/2.274, allocations: 25.7 kB / 0.6908 GB, free: 2.273 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002319/2.274, allocations: 304.2 kB / 0.6911 GB, free: 1.973 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.742e-05/2.274, allocations: 122.1 kB / 0.6913 GB, free: 1.852 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.172e-05/2.274, allocations: 41.7 kB / 0.6913 GB, free: 1.805 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001608/2.274, allocations: 382.7 kB / 0.6917 GB, free: 1.422 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001979/2.274, allocations: 156.4 kB / 0.6918 GB, free: 1.27 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002384/2.275, allocations: 243.1 kB / 0.692 GB, free: 1 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003838/2.275, allocations: 336.4 kB / 0.6924 GB, free: 0.6445 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.095e-06/2.275, allocations: 0 / 0.6924 GB, free: 0.6445 MB / 0.5762 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007771/2.276, allocations: 0.5346 MB / 0.6929 GB, free: 104 kB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.864e-05/2.276, allocations: 8 kB / 0.6929 GB, free: 96 kB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/2.276, allocations: 3.938 kB / 0.6929 GB, free: 92 kB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2128/2.489, allocations: 241.6 kB / 0.6931 GB, free: 227.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001073/2.489, allocations: 25.73 kB / 0.6931 GB, free: 227.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006079/2.489, allocations: 0.6747 MB / 0.6938 GB, free: 226.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003043/2.49, allocations: 46.67 kB / 0.6939 GB, free: 226.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.372e-05/2.49, allocations: 8.234 kB / 0.6939 GB, free: 226.8 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 4 (Bend.C2.b,Bend.C1.a,SinkP1.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 (18): * Single equations (assignments): 15 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003551/2.49, allocations: 251.4 kB / 0.6941 GB, free: 226.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001208/2.49, allocations: 68 kB / 0.6942 GB, free: 226.7 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007514/2.491, allocations: 0.6895 MB / 0.6948 GB, free: 226.5 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003314/2.491, allocations: 261.3 kB / 0.6951 GB, free: 226.4 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/2.491, allocations: 0.5 kB / 0.6951 GB, free: 226.4 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/2.491, allocations: 0.5625 kB / 0.6951 GB, free: 226.4 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001121/2.492, allocations: 0.9859 MB / 0.696 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/2.492, allocations: 4.359 kB / 0.6961 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.86e-05/2.493, allocations: 22.33 kB / 0.6961 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001352/2.494, allocations: 224.7 kB / 0.6963 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.975e-05/2.494, allocations: 6.203 kB / 0.6963 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005024/2.494, allocations: 0.7065 MB / 0.697 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.582e-06/2.494, allocations: 0 / 0.697 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004367/2.495, allocations: 409.8 kB / 0.6974 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002004/2.495, allocations: 207 kB / 0.6976 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.093e-05/2.495, allocations: 5.516 kB / 0.6976 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001974/2.495, allocations: 15.98 kB / 0.6976 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.304e-05/2.495, allocations: 14.08 kB / 0.6976 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.251e-05/2.495, allocations: 5.047 kB / 0.6976 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001065/2.497, allocations: 0.8106 MB / 0.6984 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.21e-07/2.497, allocations: 0 / 0.6984 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003472/2.5, allocations: 1.252 MB / 0.6996 GB, free: 225.1 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (12): * Single equations (assignments): 11 * 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,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005568/2.506, allocations: 2.659 MB / 0.7022 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007381/2.506, allocations: 359.8 kB / 0.7026 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/2.506, allocations: 0 / 0.7026 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002625/2.507, allocations: 108 kB / 0.7027 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009074/2.508, allocations: 152.9 kB / 0.7028 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0074/2.515, allocations: 6.409 MB / 0.7091 GB, free: 222.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/2.515, allocations: 0.936 MB / 0.71 GB, free: 221.4 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001752/2.515, allocations: 58.66 kB / 0.71 GB, free: 221.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002056/2.516, allocations: 233.5 kB / 0.7103 GB, free: 221.4 MB / 0.5762 GB Notification: Performance of SimCode: time 9.62e-07/2.516, allocations: 0.8125 kB / 0.7103 GB, free: 221.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06978/2.585, allocations: 52.91 MB / 0.7619 GB, free: 184.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001519/2.586, allocations: 246.8 kB / 0.7622 GB, free: 184 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.3/6.886, allocations: 0 / 0.7622 GB, free: 184 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1)