Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestJunctions1.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.TestJunctions1,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestJunctions1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestJunctions1,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestJunctions1",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.7701/0.7701, allocations: 150.8 MB / 166.1 MB, free: 15.4 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.519e-05/1.52e-05, allocations: 4 kB / 204.9 MB, free: 9.977 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.1377, 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.Examples.SimpleExamples.TestJunctions1): time 1.462/1.6, allocations: 298.1 MB / 0.5224 GB, free: 9.664 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03987/1.64, allocations: 37.87 MB / 0.5594 GB, free: 3.93 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002995/1.64, allocations: 8 kB / 0.5594 GB, free: 3.922 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004135/1.641, allocations: 194.7 kB / 0.5596 GB, free: 3.73 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006108/1.641, allocations: 369.1 kB / 0.5599 GB, free: 3.367 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01831/1.66, allocations: 7.522 MB / 0.5673 GB, free: 11.84 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001734/1.662, allocations: 1.428 MB / 0.5687 GB, free: 10.41 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006357/1.662, allocations: 0.5331 MB / 0.5692 GB, free: 9.871 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005483/1.663, allocations: 469.7 kB / 0.5696 GB, free: 9.41 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004057/1.663, allocations: 457.4 kB / 0.5701 GB, free: 8.961 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 6.48e-05/1.663, allocations: 44 kB / 0.5701 GB, free: 8.918 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02635/1.69, allocations: 17.84 MB / 0.5875 GB, free: 7.059 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001718/1.69, allocations: 159.1 kB / 0.5877 GB, free: 6.902 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005989/1.69, allocations: 0.5766 MB / 0.5882 GB, free: 6.316 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01539/1.706, allocations: 9.339 MB / 0.5974 GB, free: 12.95 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/1.706, allocations: 0 / 0.5974 GB, free: 12.95 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.743e-06/1.706, allocations: 0 / 0.5974 GB, free: 12.95 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.261e-05/1.706, allocations: 4 kB / 0.5974 GB, free: 12.95 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: 374 * Number of variables: 374 Notification: Performance of Generate backend data structure: time 0.004164/1.71, allocations: 2.068 MB / 0.5994 GB, free: 10.82 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/1.71, allocations: 12.03 kB / 0.5994 GB, free: 10.81 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001716/1.71, allocations: 199.4 kB / 0.5996 GB, free: 10.61 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001461/1.71, allocations: 138.2 kB / 0.5997 GB, free: 10.47 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004642/1.711, allocations: 497.2 kB / 0.6002 GB, free: 9.941 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.608e-05/1.711, allocations: 82.17 kB / 0.6003 GB, free: 9.859 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/1.711, allocations: 103.9 kB / 0.6004 GB, free: 9.758 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001598/1.713, allocations: 1.33 MB / 0.6017 GB, free: 8.305 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.259e-05/1.713, allocations: 3.938 kB / 0.6017 GB, free: 8.301 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.787e-05/1.713, allocations: 48 kB / 0.6017 GB, free: 8.254 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.391e-05/1.713, allocations: 63.89 kB / 0.6018 GB, free: 8.191 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001059/1.714, allocations: 0.8013 MB / 0.6026 GB, free: 7.391 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.03979/1.754, allocations: 25.02 MB / 0.627 GB, free: 11.72 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001019/1.755, allocations: 0.5533 MB / 0.6275 GB, free: 11.15 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004412/1.755, allocations: 372.1 kB / 0.6279 GB, free: 10.78 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3042/2.059, allocations: 77.94 MB / 0.704 GB, free: 221.6 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.655e-05/2.059, allocations: 39.12 kB / 0.7041 GB, free: 221.6 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=145): time 2.625e-06/2.059, allocations: 2.188 kB / 0.7041 GB, free: 221.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=145): time 0.00426/2.064, allocations: 2.44 MB / 0.7064 GB, free: 220.6 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.339e-05/2.064, allocations: 84.83 kB / 0.7065 GB, free: 220.5 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005271/2.064, allocations: 0.5795 MB / 0.7071 GB, free: 220.3 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.165e-05/2.064, allocations: 34.7 kB / 0.7071 GB, free: 220.3 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000207/2.065, allocations: 440.7 kB / 0.7075 GB, free: 220.1 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002191/2.065, allocations: 477 kB / 0.708 GB, free: 219.8 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/2.065, allocations: 118.7 kB / 0.7081 GB, free: 219.8 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 8.476e-05/2.065, allocations: 399.4 kB / 0.7085 GB, free: 219.5 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003401/2.065, allocations: 267.9 kB / 0.7087 GB, free: 219.5 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004064/2.066, allocations: 0.5098 MB / 0.7092 GB, free: 219.2 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008283/2.067, allocations: 0.8735 MB / 0.7101 GB, free: 218.9 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/2.067, allocations: 2.875 kB / 0.7101 GB, free: 218.9 MB / 0.5762 GB Notification: Performance of matching and sorting (n=178) (initialization): time 0.001812/2.068, allocations: 1.31 MB / 0.7114 GB, free: 218.7 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/2.068, allocations: 8.688 kB / 0.7114 GB, free: 218.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/2.068, allocations: 9.188 kB / 0.7114 GB, free: 218.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001595/2.07, allocations: 0.8749 MB / 0.7122 GB, free: 218.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001007/2.07, allocations: 44.7 kB / 0.7123 GB, free: 218.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004036/2.074, allocations: 7.254 MB / 0.7194 GB, free: 212.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004095/2.075, allocations: 131.3 kB / 0.7195 GB, free: 212.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.209e-05/2.075, allocations: 29.78 kB / 0.7195 GB, free: 212.3 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 28 (singularPressureLoss6.C2.b,singularPressureLoss6.C1.a,sinkP4.C.a,singularPressureLoss5.C2.b,singularPressureLoss5.C1.a,singularPressureLoss4.C2.b,singularPressureLoss4.C1.a,sinkP3.C.a,sinkP2.C.a,singularPressureLoss3.C2.b,singularPressureLoss3.C1.a,sourceP1.C.b,splitter3.Cs2.b,splitter3.Cs1.b,splitter3.Cs3.b,splitter3.Ce.a,singularPressureLoss2.C2.b,singularPressureLoss2.C1.a,singularPressureLoss1.C2.b,singularPressureLoss1.C1.a,sinkP1.C.a,sinkP.C.a,singularPressureLoss.C2.b,singularPressureLoss.C1.a,sourceP.C.b,splitter2.Cs2.b,splitter2.Cs1.b,splitter2.Ce.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 7 systems {(1,3), (1,3), (1,3), (1,3), (1,3), (1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0002753/2.075, allocations: 249.7 kB / 0.7198 GB, free: 212.2 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.708e-05/2.075, allocations: 90.56 kB / 0.7198 GB, free: 212.1 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00265/2.078, allocations: 2.892 MB / 0.7227 GB, free: 211.7 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00188/2.08, allocations: 1.59 MB / 0.7242 GB, free: 211.4 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/2.08, allocations: 2.844 kB / 0.7242 GB, free: 211.4 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.087e-05/2.08, allocations: 7.594 kB / 0.7242 GB, free: 211.4 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0043/2.084, allocations: 3.998 MB / 0.7281 GB, free: 210.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.233e-06/2.084, allocations: 7.5 kB / 0.7281 GB, free: 210.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003588/2.084, allocations: 150.9 kB / 0.7283 GB, free: 210.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001319/2.086, allocations: 0.9217 MB / 0.7292 GB, free: 210.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.798e-05/2.086, allocations: 23.06 kB / 0.7292 GB, free: 210.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003734/2.089, allocations: 7.341 MB / 0.7364 GB, free: 204.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/2.089, allocations: 4.594 kB / 0.7364 GB, free: 204.1 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00195/2.091, allocations: 1.893 MB / 0.7382 GB, free: 203.6 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002791/2.092, allocations: 303.4 kB / 0.7385 GB, free: 203.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.525e-05/2.092, allocations: 31.33 kB / 0.7386 GB, free: 203.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003837/2.092, allocations: 48.44 kB / 0.7386 GB, free: 203.4 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/2.092, allocations: 94.31 kB / 0.7387 GB, free: 203.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.875e-05/2.092, allocations: 36.34 kB / 0.7387 GB, free: 203.4 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004064/2.093, allocations: 479 kB / 0.7392 GB, free: 203.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/2.093, allocations: 0 / 0.7392 GB, free: 203.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002922/2.096, allocations: 1.47 MB / 0.7406 GB, free: 203 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (108): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 7 systems {(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.005997/2.102, allocations: 4.116 MB / 0.7446 GB, free: 201.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002264/2.104, allocations: 1.81 MB / 0.7464 GB, free: 200 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/2.104, allocations: 1.75 kB / 0.7464 GB, free: 200 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001401/2.105, allocations: 1.027 MB / 0.7474 GB, free: 199 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002579/2.108, allocations: 0.5277 MB / 0.7479 GB, free: 198.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01009/2.118, allocations: 9.816 MB / 0.7575 GB, free: 189 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005342/2.119, allocations: 1.24 MB / 0.7587 GB, free: 187.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0004272/2.119, allocations: 108 kB / 0.7588 GB, free: 187.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004093/2.12, allocations: 0.5501 MB / 0.7594 GB, free: 187.1 MB / 0.5762 GB Notification: Performance of SimCode: time 6.31e-07/2.12, allocations: 4 kB / 0.7594 GB, free: 187.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08076/2.2, allocations: 72.6 MB / 0.8303 GB, free: 115.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001388/2.2, allocations: 227.5 kB / 0.8305 GB, free: 115.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.704/6.905, allocations: 0 / 0.8305 GB, free: 115.5 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestJunctions1.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestJunctions1.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestJunctions1.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestJunctions1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestJunctions1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestJunctions1.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestJunctions1.pipe 2>&1)