Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestBend",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_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.8417/0.8417, allocations: 150.9 MB / 166 MB, free: 14.69 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003374/0.0003376, allocations: 11.97 kB / 204.1 MB, free: 10.03 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1736/0.174, allocations: 31.34 MB / 235.4 MB, free: 5.453 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend): time 1.648/1.822, allocations: 293.8 MB / 0.5168 GB, free: 13.57 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4803/2.302, allocations: 191.5 MB / 0.7038 GB, free: 3.777 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003222/2.302, allocations: 9.25 kB / 0.7038 GB, free: 3.777 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/Bend.mo:57:3-58:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/Bend.mo:59:3-60:67:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0004061/2.303, allocations: 189.2 kB / 0.704 GB, free: 3.777 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003967/2.303, allocations: 261.8 kB / 0.7043 GB, free: 3.777 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02314/2.326, allocations: 9.472 MB / 0.7135 GB, free: 3.66 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0006821/2.327, allocations: 0.5184 MB / 0.714 GB, free: 3.656 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003182/2.327, allocations: 251.6 kB / 0.7143 GB, free: 3.641 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002633/2.328, allocations: 232.9 kB / 0.7145 GB, free: 3.641 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002801/2.328, allocations: 340.5 kB / 0.7148 GB, free: 3.641 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.759e-05/2.328, allocations: 30.12 kB / 0.7148 GB, free: 3.641 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03103/2.359, allocations: 21.09 MB / 0.7354 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002476/2.359, allocations: 199.4 kB / 0.7356 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000351/2.36, allocations: 302.4 kB / 0.7359 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02299/2.383, allocations: 10.9 MB / 0.7466 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/2.383, allocations: 0 / 0.7466 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.052e-06/2.383, allocations: 0 / 0.7466 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 8.857e-06/2.383, allocations: 2.312 kB / 0.7466 GB, free: 15.57 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.005084/2.388, allocations: 2.227 MB / 0.7487 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/2.388, allocations: 7.906 kB / 0.7487 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.509e-05/2.388, allocations: 86.16 kB / 0.7488 GB, free: 14.1 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001213/2.388, allocations: 80.5 kB / 0.7489 GB, free: 14.06 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005761/2.389, allocations: 0.5441 MB / 0.7494 GB, free: 13.71 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.424e-05/2.389, allocations: 28.22 kB / 0.7495 GB, free: 13.71 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.909e-05/2.389, allocations: 38.38 kB / 0.7495 GB, free: 13.71 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006098/2.389, allocations: 495.6 kB / 0.75 GB, free: 13.53 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/2.389, allocations: 0 / 0.75 GB, free: 13.53 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.222e-05/2.389, allocations: 18.47 kB / 0.75 GB, free: 13.53 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/2.389, allocations: 13 kB / 0.75 GB, free: 13.53 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005195/2.39, allocations: 420 kB / 0.7504 GB, free: 13.47 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00812/2.398, allocations: 6.69 MB / 0.7569 GB, free: 8.09 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005074/2.399, allocations: 125.4 kB / 0.757 GB, free: 8.043 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.551e-05/2.399, allocations: 43.09 kB / 0.7571 GB, free: 8.031 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2908/2.689, allocations: 154.7 MB / 0.9082 GB, free: 3.98 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.952e-05/2.69, allocations: 33.56 kB / 0.9082 GB, free: 3.941 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=11): time 3.286e-06/2.69, allocations: 4 kB / 0.9082 GB, free: 3.938 MB / 0.7481 GB Notification: Performance of matching and sorting (n=11): time 0.002309/2.692, allocations: 471.7 kB / 0.9087 GB, free: 3.504 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.943e-05/2.692, allocations: 108 kB / 0.9088 GB, free: 3.375 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001568/2.694, allocations: 1.058 MB / 0.9098 GB, free: 2.57 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.563e-05/2.694, allocations: 35.58 kB / 0.9098 GB, free: 2.531 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002717/2.694, allocations: 388.3 kB / 0.9102 GB, free: 2.285 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 3.525e-05/2.694, allocations: 38.77 kB / 0.9103 GB, free: 2.25 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001165/2.694, allocations: 80.52 kB / 0.9103 GB, free: 2.188 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001441/2.694, allocations: 383.6 kB / 0.9107 GB, free: 1.832 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002106/2.694, allocations: 126.3 kB / 0.9108 GB, free: 1.742 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003162/2.695, allocations: 262.3 kB / 0.9111 GB, free: 1.473 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003547/2.695, allocations: 317.1 kB / 0.9114 GB, free: 1.195 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/2.695, allocations: 4 kB / 0.9114 GB, free: 1.191 MB / 0.7481 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.00145/2.697, allocations: 0.563 MB / 0.9119 GB, free: 0.7539 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/2.697, allocations: 8 kB / 0.9119 GB, free: 0.7461 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.278e-06/2.697, allocations: 4 kB / 0.9119 GB, free: 0.7422 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001587/2.698, allocations: 194.6 kB / 0.9121 GB, free: 0.5664 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001509/2.698, allocations: 50.88 kB / 0.9122 GB, free: 0.5195 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000584/2.699, allocations: 0.6334 MB / 0.9128 GB, free: 15.91 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003238/2.699, allocations: 44.89 kB / 0.9128 GB, free: 15.87 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.529e-05/2.699, allocations: 15.31 kB / 0.9128 GB, free: 15.86 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,SinkP1.fluid,Bend.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,Bend.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002692/2.7, allocations: 261 kB / 0.9131 GB, free: 15.65 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/2.7, allocations: 67.16 kB / 0.9132 GB, free: 15.58 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007056/2.7, allocations: 255.3 kB / 0.9134 GB, free: 15.38 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/2.7, allocations: 0 / 0.9134 GB, free: 15.38 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/2.7, allocations: 11.94 kB / 0.9134 GB, free: 15.36 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/2.7, allocations: 0 / 0.9134 GB, free: 15.36 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001816/2.702, allocations: 0.843 MB / 0.9142 GB, free: 14.62 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/2.702, allocations: 4 kB / 0.9142 GB, free: 14.62 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.025e-05/2.702, allocations: 0 / 0.9142 GB, free: 14.62 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001292/2.704, allocations: 175.7 kB / 0.9144 GB, free: 14.46 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.698e-05/2.704, allocations: 14.98 kB / 0.9144 GB, free: 14.45 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005135/2.704, allocations: 0.6229 MB / 0.915 GB, free: 13.85 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/2.704, allocations: 4 kB / 0.915 GB, free: 13.85 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001317/2.706, allocations: 418.7 kB / 0.9154 GB, free: 13.46 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001819/2.706, allocations: 170.7 kB / 0.9156 GB, free: 13.29 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.777e-05/2.706, allocations: 3.875 kB / 0.9156 GB, free: 13.29 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001868/2.706, allocations: 7.984 kB / 0.9156 GB, free: 13.29 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.538e-05/2.706, allocations: 4 kB / 0.9156 GB, free: 13.28 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.292e-05/2.706, allocations: 7.984 kB / 0.9156 GB, free: 13.27 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0008395/2.707, allocations: 0.7872 MB / 0.9164 GB, free: 12.7 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.01e-07/2.707, allocations: 0 / 0.9164 GB, free: 12.7 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.004486/2.711, allocations: 1.643 MB / 0.918 GB, free: 11.17 MB / 0.7637 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 (3): * Single equations (assignments): 2 * 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.009678/2.721, allocations: 3.352 MB / 0.9213 GB, free: 8.219 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0006836/2.722, allocations: 243 kB / 0.9215 GB, free: 8.047 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/2.722, allocations: 0 / 0.9215 GB, free: 8.047 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001931/2.722, allocations: 62.42 kB / 0.9216 GB, free: 8 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007748/2.723, allocations: 86.33 kB / 0.9216 GB, free: 7.949 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01178/2.735, allocations: 6.603 MB / 0.9281 GB, free: 2.129 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005115/2.735, allocations: 0.9291 MB / 0.929 GB, free: 1.207 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0002542/2.735, allocations: 72.25 kB / 0.9291 GB, free: 1.133 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002521/2.736, allocations: 214.5 kB / 0.9293 GB, free: 1.082 MB / 0.7637 GB Notification: Performance of SimCode: time 1.763e-06/2.736, allocations: 8 kB / 0.9293 GB, free: 1.074 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2583/2.994, allocations: 60.46 MB / 0.9883 GB, free: 448.9 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001574/2.994, allocations: 305.8 kB / 0.9886 GB, free: 448.5 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.507/7.501, allocations: 0 / 0.9886 GB, free: 448.5 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestBend_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestBend.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1)