Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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.Examples.SimpleExamples.TestJunctions2,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestJunctions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestJunctions2,fileNamePrefix="ThermoSysPro_ThermoSysPro_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.7727/0.7727, allocations: 150.8 MB / 166.1 MB, free: 15.43 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.684e-05/1.687e-05, allocations: 4 kB / 204.9 MB, free: 9.977 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.141, allocations: 31.98 MB / 236.8 MB, free: 5.41 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.SimpleExamples.TestJunctions2): time 1.513/1.654, allocations: 299.5 MB / 0.5238 GB, free: 8.328 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04207/1.696, allocations: 38.23 MB / 0.5611 GB, free: 2.227 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004595/1.697, allocations: 12 kB / 0.5612 GB, free: 2.215 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005027/1.697, allocations: 238.4 kB / 0.5614 GB, free: 1.98 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008841/1.698, allocations: 492.2 kB / 0.5619 GB, free: 1.496 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01974/1.718, allocations: 7.601 MB / 0.5693 GB, free: 9.891 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002326/1.72, allocations: 1.902 MB / 0.5711 GB, free: 7.977 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008605/1.721, allocations: 0.6564 MB / 0.5718 GB, free: 7.309 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007374/1.722, allocations: 0.6102 MB / 0.5724 GB, free: 6.695 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005793/1.723, allocations: 0.5904 MB / 0.5729 GB, free: 6.102 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 8.346e-05/1.723, allocations: 52 kB / 0.573 GB, free: 6.051 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0284/1.751, allocations: 17.84 MB / 0.5904 GB, free: 4.184 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002693/1.751, allocations: 206.8 kB / 0.5906 GB, free: 3.98 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008749/1.752, allocations: 0.7553 MB / 0.5914 GB, free: 3.215 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01852/1.771, allocations: 9.72 MB / 0.6008 GB, free: 9.469 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/1.771, allocations: 0 / 0.6008 GB, free: 9.469 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.475e-06/1.771, allocations: 4 kB / 0.6009 GB, free: 9.465 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.713e-05/1.771, allocations: 0 / 0.6009 GB, free: 9.465 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 490 * Number of variables: 490 Notification: Performance of Generate backend data structure: time 0.005503/1.776, allocations: 2.351 MB / 0.6031 GB, free: 7.059 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/1.777, allocations: 8.031 kB / 0.6032 GB, free: 7.051 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002283/1.777, allocations: 254.4 kB / 0.6034 GB, free: 6.793 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001951/1.777, allocations: 185.7 kB / 0.6036 GB, free: 6.609 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005972/1.778, allocations: 0.5849 MB / 0.6041 GB, free: 5.98 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.184e-05/1.778, allocations: 102.8 kB / 0.6042 GB, free: 5.879 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001358/1.778, allocations: 132 kB / 0.6044 GB, free: 5.75 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002123/1.78, allocations: 1.733 MB / 0.6061 GB, free: 3.867 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.878e-05/1.78, allocations: 7.938 kB / 0.6061 GB, free: 3.859 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.657e-05/1.78, allocations: 60 kB / 0.6061 GB, free: 3.801 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.237e-05/1.78, allocations: 83.88 kB / 0.6062 GB, free: 3.719 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001427/1.782, allocations: 1.038 MB / 0.6072 GB, free: 2.688 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.06226/1.844, allocations: 35.73 MB / 0.6421 GB, free: 11.23 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001403/1.845, allocations: 0.7448 MB / 0.6428 GB, free: 10.46 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006566/1.846, allocations: 494.1 kB / 0.6433 GB, free: 9.973 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3027/2.149, allocations: 77.95 MB / 0.7194 GB, free: 206.7 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.6e-05/2.149, allocations: 40.12 kB / 0.7195 GB, free: 206.6 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=194): time 2.945e-06/2.149, allocations: 0 / 0.7195 GB, free: 206.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=194): time 0.005754/2.154, allocations: 3.2 MB / 0.7226 GB, free: 205.3 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.302e-05/2.155, allocations: 111.6 kB / 0.7227 GB, free: 205.2 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007371/2.155, allocations: 0.7464 MB / 0.7234 GB, free: 205.1 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.497e-05/2.155, allocations: 39.61 kB / 0.7235 GB, free: 205 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002476/2.156, allocations: 0.5402 MB / 0.724 GB, free: 204.8 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002861/2.156, allocations: 0.6255 MB / 0.7246 GB, free: 204.4 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001328/2.156, allocations: 153 kB / 0.7248 GB, free: 204.4 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.823e-05/2.156, allocations: 355.5 kB / 0.7251 GB, free: 204 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000475/2.157, allocations: 353.9 kB / 0.7254 GB, free: 204 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005823/2.157, allocations: 0.6656 MB / 0.7261 GB, free: 203.7 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00117/2.158, allocations: 1.159 MB / 0.7272 GB, free: 203.3 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/2.158, allocations: 3 kB / 0.7272 GB, free: 203.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=237) (initialization): time 0.002532/2.161, allocations: 1.697 MB / 0.7289 GB, free: 203 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/2.161, allocations: 8.656 kB / 0.7289 GB, free: 203 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/2.161, allocations: 8.156 kB / 0.7289 GB, free: 203 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002103/2.163, allocations: 1.132 MB / 0.73 GB, free: 202.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001229/2.163, allocations: 44.27 kB / 0.73 GB, free: 202.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005639/2.169, allocations: 9.86 MB / 0.7397 GB, free: 194.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006215/2.169, allocations: 168.5 kB / 0.7398 GB, free: 194.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.771e-05/2.17, allocations: 44.83 kB / 0.7399 GB, free: 194.2 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 36 (sinkP2.C.a,singularPressureLoss8.C2.b,singularPressureLoss8.C1.a,singularPressureLoss7.C2.b,singularPressureLoss7.C1.a,sourceQ1.C.b,massFlowMultiplier.Cs.b,massFlowMultiplier.Ce.a,singularPressureLoss6.C2.b,singularPressureLoss6.C1.a,sourceQ.C.b,sinkP1.C.a,sourceP3.C.b,sourceP2.C.b,singularPressureLoss5.C2.b,singularPressureLoss5.C1.a,singularPressureLoss4.C2.b,singularPressureLoss4.C1.a,singularPressureLoss3.C2.b,singularPressureLoss3.C1.a,mixer2_2.Ce3.a,mixer2_2.Ce1.a,mixer2_2.Cs.b,mixer2_2.Ce2.a,sinkP.C.a,sourceP1.C.b,sourceP.C.b,singularPressureLoss2.C2.b,singularPressureLoss2.C1.a,singularPressureLoss1.C2.b,singularPressureLoss1.C1.a,singularPressureLoss.C2.b,singularPressureLoss.C1.a,mixer2_1.Ce1.a,mixer2_1.Cs.b,mixer2_1.Ce2.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.0003946/2.17, allocations: 292.9 kB / 0.7401 GB, free: 194.1 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000145/2.17, allocations: 118.3 kB / 0.7403 GB, free: 194 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003762/2.174, allocations: 3.941 MB / 0.7441 GB, free: 193.4 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002445/2.176, allocations: 2.06 MB / 0.7461 GB, free: 193.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/2.176, allocations: 7.844 kB / 0.7461 GB, free: 193.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.446e-05/2.176, allocations: 8.062 kB / 0.7461 GB, free: 193.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005628/2.182, allocations: 5.142 MB / 0.7512 GB, free: 191.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.255e-06/2.182, allocations: 0.5625 kB / 0.7512 GB, free: 191.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004419/2.182, allocations: 195.5 kB / 0.7513 GB, free: 191.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001817/2.184, allocations: 1.205 MB / 0.7525 GB, free: 190.9 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.972e-05/2.184, allocations: 30.5 kB / 0.7525 GB, free: 190.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005681/2.19, allocations: 9.974 MB / 0.7623 GB, free: 181.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/2.19, allocations: 6.312 kB / 0.7623 GB, free: 181.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002823/2.193, allocations: 2.455 MB / 0.7647 GB, free: 179.1 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004976/2.193, allocations: 390.1 kB / 0.7651 GB, free: 178.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001473/2.194, allocations: 35.98 kB / 0.7651 GB, free: 178.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006451/2.194, allocations: 63.67 kB / 0.7652 GB, free: 178.6 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001454/2.194, allocations: 113 kB / 0.7653 GB, free: 178.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.237e-05/2.194, allocations: 55.7 kB / 0.7653 GB, free: 178.4 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000659/2.195, allocations: 0.6054 MB / 0.7659 GB, free: 177.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/2.195, allocations: 0 / 0.7659 GB, free: 177.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003636/2.199, allocations: 1.572 MB / 0.7674 GB, free: 176.3 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (142): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.008628/2.207, allocations: 4.715 MB / 0.7721 GB, free: 171.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003472/2.211, allocations: 2.476 MB / 0.7745 GB, free: 169.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.9e-06/2.211, allocations: 0 / 0.7745 GB, free: 169.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002107/2.213, allocations: 1.352 MB / 0.7758 GB, free: 167.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004035/2.217, allocations: 0.7043 MB / 0.7765 GB, free: 167.2 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01555/2.233, allocations: 12.64 MB / 0.7888 GB, free: 154.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007524/2.233, allocations: 1.425 MB / 0.7902 GB, free: 152.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0005658/2.234, allocations: 154.8 kB / 0.7904 GB, free: 152.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000541/2.235, allocations: 0.7336 MB / 0.7911 GB, free: 151.8 MB / 0.5762 GB Notification: Performance of SimCode: time 6.21e-07/2.235, allocations: 0 / 0.7911 GB, free: 151.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09965/2.334, allocations: 83.59 MB / 0.8727 GB, free: 69.54 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001414/2.334, allocations: 231.5 kB / 0.8729 GB, free: 69.29 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.349/7.683, allocations: 0 / 0.8729 GB, free: 69.29 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestJunctions2.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestJunctions2.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestJunctions2.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestJunctions2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestJunctions2_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestJunctions2.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestJunctions2.pipe 2>&1)