Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions2.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.SimpleExamples.TestJunctions2,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestJunctions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions2,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestJunctions2",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.7477/0.7477, allocations: 150.8 MB / 166.1 MB, free: 15.43 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.854e-05/1.857e-05, allocations: 4 kB / 204.9 MB, free: 9.941 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.1349, allocations: 31.98 MB / 236.8 MB, free: 5.402 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.Fluid.Examples.SimpleExamples.TestJunctions2): time 1.423/1.558, allocations: 301.7 MB / 0.5259 GB, free: 6.176 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4195/1.977, allocations: 188.1 MB / 0.7096 GB, free: 3.797 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008617/1.978, allocations: 50 kB / 0.7097 GB, free: 3.797 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0004511/1.979, allocations: 216.8 kB / 0.7099 GB, free: 3.797 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002196/1.981, allocations: 0.7333 MB / 0.7106 GB, free: 3.797 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03147/2.013, allocations: 9.576 MB / 0.7199 GB, free: 3.633 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003511/2.016, allocations: 2.889 MB / 0.7227 GB, free: 3.621 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001617/2.018, allocations: 1.366 MB / 0.7241 GB, free: 3.379 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001143/2.019, allocations: 0.9527 MB / 0.725 GB, free: 3.379 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001042/2.02, allocations: 1.094 MB / 0.7261 GB, free: 3.379 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002272/2.02, allocations: 121.6 kB / 0.7262 GB, free: 3.379 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02989/2.05, allocations: 20.32 MB / 0.746 GB, free: 1.754 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005054/2.051, allocations: 445.6 kB / 0.7465 GB, free: 1.68 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001408/2.052, allocations: 1.248 MB / 0.7477 GB, free: 1.582 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02125/2.073, allocations: 12.48 MB / 0.7599 GB, free: 12.52 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/2.073, allocations: 0 / 0.7599 GB, free: 12.52 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.603e-06/2.073, allocations: 0 / 0.7599 GB, free: 12.52 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.000125/2.073, allocations: 0 / 0.7599 GB, free: 12.52 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: 731 * Number of variables: 731 Notification: Performance of Generate backend data structure: time 0.006785/2.08, allocations: 3.388 MB / 0.7632 GB, free: 10.36 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/2.08, allocations: 11.31 kB / 0.7632 GB, free: 10.36 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003381/2.081, allocations: 389.8 kB / 0.7636 GB, free: 10.24 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000379/2.081, allocations: 323.5 kB / 0.7639 GB, free: 10.09 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001318/2.082, allocations: 1.12 MB / 0.765 GB, free: 9.48 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001147/2.082, allocations: 213.8 kB / 0.7652 GB, free: 9.473 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002234/2.083, allocations: 278.7 kB / 0.7654 GB, free: 9.473 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003707/2.086, allocations: 2.895 MB / 0.7683 GB, free: 8.355 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.797e-05/2.086, allocations: 8.688 kB / 0.7683 GB, free: 8.355 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000175/2.087, allocations: 120.1 kB / 0.7684 GB, free: 8.355 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.121e-05/2.087, allocations: 74.66 kB / 0.7685 GB, free: 8.355 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002935/2.09, allocations: 1.933 MB / 0.7703 GB, free: 8.094 MB / 0.5919 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.02599/2.116, allocations: 26.92 MB / 0.7966 GB, free: 14.63 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001157/2.117, allocations: 0.6947 MB / 0.7973 GB, free: 14.15 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003957/2.117, allocations: 266.5 kB / 0.7976 GB, free: 13.98 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6135/2.731, allocations: 250.1 MB / 1.042 GB, free: 418.3 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.631e-05/2.731, allocations: 38 kB / 1.042 GB, free: 418.2 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=69): time 2.384e-06/2.731, allocations: 0 / 1.042 GB, free: 418.2 MB / 0.8106 GB Notification: Performance of matching and sorting (n=69): time 0.005098/2.736, allocations: 2.703 MB / 1.044 GB, free: 415.7 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.65e-05/2.736, allocations: 110.8 kB / 1.045 GB, free: 415.6 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001405/2.737, allocations: 1.495 MB / 1.046 GB, free: 414.5 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.334e-05/2.737, allocations: 37.45 kB / 1.046 GB, free: 414.5 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004558/2.738, allocations: 1.318 MB / 1.047 GB, free: 413.5 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001136/2.738, allocations: 269.6 kB / 1.048 GB, free: 413.3 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001538/2.738, allocations: 200.3 kB / 1.048 GB, free: 413.2 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 3.262e-05/2.738, allocations: 309 kB / 1.048 GB, free: 412.9 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006161/2.739, allocations: 370.2 kB / 1.048 GB, free: 412.6 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008579/2.74, allocations: 1.332 MB / 1.05 GB, free: 411 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00143/2.741, allocations: 1.814 MB / 1.052 GB, free: 409.1 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.076e-05/2.741, allocations: 12.77 kB / 1.052 GB, free: 409 MB / 0.8106 GB Notification: Performance of matching and sorting (n=241) (initialization): time 0.003664/2.745, allocations: 2.333 MB / 1.054 GB, free: 407.1 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.278e-05/2.745, allocations: 24.03 kB / 1.054 GB, free: 407.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.267e-05/2.745, allocations: 32 kB / 1.054 GB, free: 407.1 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001723/2.747, allocations: 0.5697 MB / 1.054 GB, free: 406.6 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006831/2.747, allocations: 326.3 kB / 1.055 GB, free: 406.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003924/2.751, allocations: 9.277 MB / 1.064 GB, free: 396.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001188/2.752, allocations: 321.3 kB / 1.064 GB, free: 396.5 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.303e-05/2.753, allocations: 111.4 kB / 1.064 GB, free: 396.4 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 154 * Number of states: 0 () * Number of discrete variables: 60 (massFlowMultiplier.Cs.ftype,sourceQ1.C.ftype,massFlowMultiplier.fluids[1],singularPressureLoss7.fluid,singularPressureLoss8.fluid,sinkP2.fluid,sourceQ1.fluid1,massFlowMultiplier.fluid1,sourceQ.C.ftype,mixer2_2.Cs.ftype,sourceP3.C.ftype,sourceP2.C.ftype,mixer2_2.fluids[1],singularPressureLoss3.fluid,singularPressureLoss4.fluid,singularPressureLoss5.fluid,sinkP1.fluid,singularPressureLoss6.fluid,sourceQ.fluid1,sourceP3.fluid1,sourceP2.fluid1,mixer2_2.fluid1,mixer2_1.Cs.ftype,sourceP1.C.ftype,sourceP.C.ftype,mixer2_1.fluids[1],singularPressureLoss.fluid,singularPressureLoss1.fluid,singularPressureLoss2.fluid,sinkP.fluid,sourceP1.fluid1,sourceP.fluid1,mixer2_1.fluid1,massFlowMultiplier.Cs.diff_on_2,massFlowMultiplier.Cs.diff_on_1,singularPressureLoss8.C2.diff_on_1,massFlowMultiplier.Ce.diff_on_2,sourceQ1.C.diff_on_2,singularPressureLoss7.C2.diff_on_1,mixer2_2.Ce3.diff_on_2,sourceQ.C.diff_on_2,singularPressureLoss6.C2.diff_on_1,mixer2_2.Cs.diff_on_2,singularPressureLoss5.C2.diff_on_1,singularPressureLoss4.C2.diff_on_1,mixer2_2.Ce2.diff_on_2,sourceP3.C.diff_on_2,mixer2_2.Ce1.diff_on_2,sourceP2.C.diff_on_2,mixer2_2.Cs.diff_on_1,singularPressureLoss3.C2.diff_on_1,mixer2_1.Cs.diff_on_2,singularPressureLoss2.C2.diff_on_1,singularPressureLoss1.C2.diff_on_1,mixer2_1.Ce2.diff_on_2,sourceP1.C.diff_on_2,mixer2_1.Ce1.diff_on_2,sourceP.C.diff_on_2,mixer2_1.Cs.diff_on_1,singularPressureLoss.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (205): * Single equations (assignments): 193 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,2,100.0%), (1,4,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 9 systems {(1,3), (1,3), (1,3), (1,3), (1,3), (1,3), (1,3), (1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0005212/2.753, allocations: 469.9 kB / 1.065 GB, free: 396.1 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001612/2.753, allocations: 169.9 kB / 1.065 GB, free: 395.9 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002573/2.756, allocations: 1.343 MB / 1.066 GB, free: 394.9 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.431e-06/2.756, allocations: 8 kB / 1.066 GB, free: 394.9 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/2.756, allocations: 0 / 1.066 GB, free: 394.9 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/2.756, allocations: 14.94 kB / 1.066 GB, free: 394.9 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002369/2.758, allocations: 2.054 MB / 1.068 GB, free: 393.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/2.758, allocations: 7.375 kB / 1.068 GB, free: 393.3 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001004/2.758, allocations: 43.92 kB / 1.068 GB, free: 393.2 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001527/2.76, allocations: 0.5062 MB / 1.069 GB, free: 392.8 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.972e-05/2.76, allocations: 27.8 kB / 1.069 GB, free: 392.7 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003601/2.764, allocations: 9.171 MB / 1.078 GB, free: 383.4 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/2.764, allocations: 0 / 1.078 GB, free: 383.4 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002087/2.766, allocations: 1.353 MB / 1.079 GB, free: 382.2 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002724/2.766, allocations: 315.8 kB / 1.079 GB, free: 381.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001265/2.766, allocations: 15.19 kB / 1.079 GB, free: 381.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004361/2.766, allocations: 22.92 kB / 1.079 GB, free: 381.9 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.672e-05/2.767, allocations: 63.42 kB / 1.079 GB, free: 381.8 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.033e-05/2.767, allocations: 27.61 kB / 1.079 GB, free: 381.8 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0009032/2.768, allocations: 0.9284 MB / 1.08 GB, free: 381.1 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/2.768, allocations: 0 / 1.08 GB, free: 381.1 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.003689/2.771, allocations: 2.004 MB / 1.082 GB, free: 379.4 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (32): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,2,100.0%), (1,4,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 9 systems {(1,3), (1,3), (1,3), (1,3), (1,3), (1,3), (1,3), (1,3), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006908/2.778, allocations: 3.87 MB / 1.086 GB, free: 376.2 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001949/2.78, allocations: 1.474 MB / 1.088 GB, free: 374.9 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/2.78, allocations: 0 / 1.088 GB, free: 374.9 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0009024/2.781, allocations: 0.7315 MB / 1.088 GB, free: 374.3 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001703/2.783, allocations: 437.3 kB / 1.089 GB, free: 374 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01613/2.799, allocations: 16.17 MB / 1.104 GB, free: 356.2 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006142/2.8, allocations: 1.439 MB / 1.106 GB, free: 354.7 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0008757/2.8, allocations: 294.4 kB / 1.106 GB, free: 354.5 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005798/2.801, allocations: 0.8546 MB / 1.107 GB, free: 353.6 MB / 0.8106 GB Notification: Performance of SimCode: time 4.31e-07/2.801, allocations: 0 / 1.107 GB, free: 353.6 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.604/7.405, allocations: 78.87 MB / 1.184 GB, free: 276 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002904/7.405, allocations: 286.4 kB / 1.184 GB, free: 275.6 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.804/12.21, allocations: 0 / 1.184 GB, free: 275.6 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions2.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions2.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions2.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestJunctions2_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestJunctions2.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions2.pipe 2>&1)