Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestLumpedStraightPipe.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.TestLumpedStraightPipe,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestLumpedStraightPipe",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestLumpedStraightPipe,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestLumpedStraightPipe",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.731/0.731, allocations: 150.9 MB / 166 MB, free: 14.62 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003068/0.0003068, allocations: 15.97 kB / 204.1 MB, free: 10.04 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1306, allocations: 31.33 MB / 235.4 MB, free: 5.441 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.Examples.SimpleExamples.TestLumpedStraightPipe): time 1.436/1.567, allocations: 294.8 MB / 0.5178 GB, free: 12.57 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1656/1.732, allocations: 183.7 MB / 0.6972 GB, free: 4.516 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003608/1.733, allocations: 0 / 0.6972 GB, free: 4.516 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Volumes/Tank.mo:71:3-72:53:writable] Warning: Connector Ce1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Volumes/Tank.mo:73:3-74:53:writable] Warning: Connector Cs2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Volumes/Tank.mo:78:3-79:55:writable] Warning: Connector Ce2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Volumes/Tank.mo:80:3-81:51:writable] Warning: Connector Cs1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Volumes/Tank.mo:71:3-72:53:writable] Warning: Connector Ce1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Volumes/Tank.mo:73:3-74:53:writable] Warning: Connector Cs2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Volumes/Tank.mo:78:3-79:55:writable] Warning: Connector Ce2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Volumes/Tank.mo:80:3-81:51:writable] Warning: Connector Cs1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/LumpedStraightPipe.mo:49:3-50:42:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/LumpedStraightPipe.mo:51:3-53:37:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0004136/1.733, allocations: 105.1 kB / 0.6973 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003008/1.733, allocations: 166.7 kB / 0.6974 GB, free: 4.25 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.2731/2.006, allocations: 7.855 MB / 0.7051 GB, free: 6.574 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001138/2.008, allocations: 0.8701 MB / 0.706 GB, free: 6.574 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004168/2.008, allocations: 298.4 kB / 0.7062 GB, free: 6.559 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000574/2.009, allocations: 338.8 kB / 0.7066 GB, free: 6.559 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005039/2.009, allocations: 369.3 kB / 0.7069 GB, free: 6.559 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001307/2.009, allocations: 39.84 kB / 0.707 GB, free: 6.559 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02463/2.034, allocations: 17.23 MB / 0.7238 GB, free: 6.492 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002177/2.034, allocations: 131.1 kB / 0.7239 GB, free: 6.492 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004782/2.035, allocations: 330 kB / 0.7242 GB, free: 6.488 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01459/2.049, allocations: 9.317 MB / 0.7333 GB, free: 6.203 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/2.049, allocations: 3.875 kB / 0.7333 GB, free: 6.203 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.283e-06/2.049, allocations: 0 / 0.7333 GB, free: 6.203 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.404e-06/2.049, allocations: 2.719 kB / 0.7333 GB, free: 6.203 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.006112/2.055, allocations: 2.27 MB / 0.7355 GB, free: 5.148 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/2.055, allocations: 10.12 kB / 0.7356 GB, free: 5.148 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.155e-05/2.056, allocations: 97.92 kB / 0.7356 GB, free: 5.109 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001143/2.056, allocations: 68.69 kB / 0.7357 GB, free: 5.074 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003779/2.056, allocations: 370.6 kB / 0.7361 GB, free: 4.82 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.912e-05/2.056, allocations: 97.52 kB / 0.7362 GB, free: 4.758 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.618e-05/2.056, allocations: 50.97 kB / 0.7362 GB, free: 4.754 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001728/2.058, allocations: 0.8785 MB / 0.7371 GB, free: 4.449 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/2.058, allocations: 2.469 kB / 0.7371 GB, free: 4.449 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.251e-05/2.058, allocations: 20.59 kB / 0.7371 GB, free: 4.449 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.633e-05/2.058, allocations: 21.45 kB / 0.7371 GB, free: 4.445 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002431/2.06, allocations: 0.9374 MB / 0.738 GB, free: 4.207 MB / 0.5762 GB 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.003048/2.064, allocations: 3.918 MB / 0.7418 GB, free: 17.05 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002023/2.066, allocations: 0.6886 MB / 0.7425 GB, free: 16.86 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001064/2.067, allocations: 405.8 kB / 0.7429 GB, free: 16.77 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1955/2.262, allocations: 117.3 MB / 0.8575 GB, free: 9.977 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.209e-05/2.262, allocations: 42.17 kB / 0.8575 GB, free: 9.93 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=71): time 2.414e-06/2.262, allocations: 0 / 0.8575 GB, free: 9.93 MB / 0.7012 GB Notification: Performance of matching and sorting (n=71): time 0.004201/2.266, allocations: 1.467 MB / 0.859 GB, free: 8.684 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.573e-05/2.266, allocations: 55.41 kB / 0.859 GB, free: 8.617 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003643/2.267, allocations: 398 kB / 0.8594 GB, free: 8.297 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 4.118e-05/2.267, allocations: 40.64 kB / 0.8594 GB, free: 8.258 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001589/2.267, allocations: 282.8 kB / 0.8597 GB, free: 8.031 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001605/2.267, allocations: 250.7 kB / 0.8599 GB, free: 7.82 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002167/2.267, allocations: 163.3 kB / 0.8601 GB, free: 7.707 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001332/2.268, allocations: 363.3 kB / 0.8604 GB, free: 7.367 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00118/2.269, allocations: 384.9 kB / 0.8608 GB, free: 7.078 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001314/2.27, allocations: 0.6372 MB / 0.8614 GB, free: 6.441 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00245/2.273, allocations: 1.044 MB / 0.8624 GB, free: 5.531 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.431e-06/2.273, allocations: 4 kB / 0.8624 GB, free: 5.527 MB / 0.7012 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003199/2.276, allocations: 1.272 MB / 0.8637 GB, free: 4.566 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/2.276, allocations: 13.62 kB / 0.8637 GB, free: 4.555 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.473e-05/2.276, allocations: 12 kB / 0.8637 GB, free: 4.543 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002439/2.278, allocations: 0.6096 MB / 0.8643 GB, free: 3.98 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001316/2.28, allocations: 287.5 kB / 0.8646 GB, free: 3.715 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001444/2.281, allocations: 1.963 MB / 0.8665 GB, free: 1.855 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008414/2.282, allocations: 157.7 kB / 0.8667 GB, free: 1.711 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.968e-05/2.282, allocations: 40.08 kB / 0.8667 GB, free: 1.68 MB / 0.7012 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 16 (lumpedStraightPipe.C2.b,lumpedStraightPipe.C1.a,tank2.Cs1.b,tank2.Ce2.a,tank2.Cs2.b,tank2.Ce1.a,tank1.Cs1.b,tank1.Ce2.a,tank1.Cs2.b,tank1.Ce1.a,tank2.Cs2.a,tank2.Cs1.a,tank2.Ce1.b,tank1.Cs1.a,tank1.Ce2.b,tank1.Ce1.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(3,9), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002126/2.282, allocations: 203.8 kB / 0.8669 GB, free: 1.523 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.934e-05/2.282, allocations: 51.34 kB / 0.8669 GB, free: 1.473 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003059/2.285, allocations: 1.407 MB / 0.8683 GB, free: 464 kB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002617/2.288, allocations: 1.12 MB / 0.8694 GB, free: 15.59 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.872e-06/2.288, allocations: 3.984 kB / 0.8694 GB, free: 15.59 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/2.288, allocations: 7.984 kB / 0.8694 GB, free: 15.58 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004309/2.292, allocations: 2.304 MB / 0.8717 GB, free: 13.79 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.838e-06/2.292, allocations: 0 / 0.8717 GB, free: 13.79 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001707/2.294, allocations: 335.4 kB / 0.872 GB, free: 13.47 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002712/2.294, allocations: 215.2 kB / 0.8722 GB, free: 13.29 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.666e-05/2.294, allocations: 18.42 kB / 0.8722 GB, free: 13.28 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006449/2.295, allocations: 1.221 MB / 0.8734 GB, free: 12.1 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/2.295, allocations: 0 / 0.8734 GB, free: 12.1 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004025/2.299, allocations: 1.812 MB / 0.8752 GB, free: 10.71 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001996/2.299, allocations: 207.9 kB / 0.8754 GB, free: 10.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.87e-05/2.299, allocations: 15.28 kB / 0.8754 GB, free: 10.51 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007445/2.3, allocations: 102.5 kB / 0.8755 GB, free: 10.42 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000144/2.3, allocations: 66.91 kB / 0.8755 GB, free: 10.37 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-05/2.3, allocations: 26.86 kB / 0.8756 GB, free: 10.35 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002075/2.301, allocations: 252.3 kB / 0.8758 GB, free: 10.15 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/2.301, allocations: 0 / 0.8758 GB, free: 10.15 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.003595/2.304, allocations: 1.467 MB / 0.8772 GB, free: 8.789 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (tank1.z,tank1.h,tank2.z,tank2.h,lumpedStraightPipe.Q) * 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 (83): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009736/2.314, allocations: 4.452 MB / 0.8816 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.00319/2.317, allocations: 1.224 MB / 0.8828 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/2.317, allocations: 0 / 0.8828 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.001453/2.319, allocations: 0.5854 MB / 0.8834 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000934/2.32, allocations: 212.1 kB / 0.8836 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01239/2.332, allocations: 7.575 MB / 0.891 GB, free: 12.61 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003764/2.332, allocations: 0.9274 MB / 0.8919 GB, free: 11.66 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0004459/2.333, allocations: 100.8 kB / 0.892 GB, free: 11.56 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003804/2.333, allocations: 287.3 kB / 0.8922 GB, free: 11.28 MB / 0.7325 GB Notification: Performance of SimCode: time 2.51e-07/2.333, allocations: 0 / 0.8922 GB, free: 11.28 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.888/6.221, allocations: 61.62 MB / 0.9524 GB, free: 13.98 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002575/6.221, allocations: 289.2 kB / 0.9527 GB, free: 13.6 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.372/10.59, allocations: 5.141 kB / 0.9527 GB, free: 13.59 MB / 0.795 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestLumpedStraightPipe.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestLumpedStraightPipe.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestLumpedStraightPipe.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestLumpedStraightPipe.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestLumpedStraightPipe_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestLumpedStraightPipe.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestLumpedStraightPipe.pipe 2>&1)