Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.689/1.689, allocations: 205.4 MB / 222.1 MB, free: 5.543 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4212/0.4212, allocations: 38.04 MB / 308.4 MB, free: 10.57 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006349/0.0006349, allocations: 16 kB / 376.4 MB, free: 15.21 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1802/0.1809, allocations: 57.52 MB / 433.9 MB, free: 5.59 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity): time 0.3735/0.5545, allocations: 54.69 MB / 488.6 MB, free: 23.54 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02516/0.5797, allocations: 22.87 MB / 0.4995 GB, free: 7.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001405/0.5812, allocations: 31.81 kB / 0.4995 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00162/0.5828, allocations: 463.7 kB / 0.5 GB, free: 7.246 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01808/0.6009, allocations: 4.092 MB / 0.504 GB, free: 5.18 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01149/0.6124, allocations: 3.042 MB / 0.5069 GB, free: 3.469 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003654/0.6161, allocations: 1.324 MB / 0.5082 GB, free: 2.777 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00127/0.6174, allocations: 0.5464 MB / 0.5088 GB, free: 2.574 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01496/0.6323, allocations: 6.469 MB / 0.5151 GB, free: 1.609 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002564/0.635, allocations: 0.5077 MB / 0.5156 GB, free: 1.395 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003202/0.6353, allocations: 45.72 kB / 0.5156 GB, free: 1.391 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01956/0.6549, allocations: 6.744 MB / 0.5222 GB, free: 15.73 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003382/0.6553, allocations: 189.6 kB / 0.5224 GB, free: 15.59 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005473/0.6558, allocations: 213 kB / 0.5226 GB, free: 15.48 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008507/0.6643, allocations: 3.377 MB / 0.5259 GB, free: 13.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.6643, allocations: 0 / 0.5259 GB, free: 13.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.6644, allocations: 0 / 0.5259 GB, free: 13.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.142e-05/0.6644, allocations: 0 / 0.5259 GB, free: 13.48 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.004959/0.6693, allocations: 1.621 MB / 0.5275 GB, free: 12.34 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/0.6694, allocations: 9.375 kB / 0.5275 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004407/0.6738, allocations: 0.6229 MB / 0.5281 GB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001049/0.6749, allocations: 0.5869 MB / 0.5287 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.54e-05/0.675, allocations: 65.59 kB / 0.5287 GB, free: 11.56 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001075/0.6751, allocations: 75.23 kB / 0.5288 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0032/0.6783, allocations: 1.366 MB / 0.5301 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.805e-05/0.6783, allocations: 0 / 0.5301 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.243e-05/0.6784, allocations: 36 kB / 0.5302 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.454e-05/0.6784, allocations: 20 kB / 0.5302 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003181/0.6816, allocations: 1.255 MB / 0.5314 GB, free: 8.973 MB / 398.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.007283/0.6889, allocations: 5.758 MB / 0.537 GB, free: 2.852 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003071/0.692, allocations: 1.003 MB / 0.538 GB, free: 1.832 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06841/0.7604, allocations: 32.61 MB / 0.5699 GB, free: 13.37 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.43e-05/0.7606, allocations: 42.56 kB / 0.5699 GB, free: 13.32 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009712/0.7615, allocations: 111.1 kB / 0.57 GB, free: 13.21 MB / 446.1 MB Notification: Performance of pre-optimization done (n=58): time 6.592e-06/0.7616, allocations: 0 / 0.57 GB, free: 13.21 MB / 446.1 MB Notification: Performance of matching and sorting (n=58): time 0.006672/0.7683, allocations: 1.878 MB / 0.5718 GB, free: 11.28 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001349/0.7684, allocations: 195.9 kB / 0.572 GB, free: 11.04 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001148/0.7696, allocations: 0.6685 MB / 0.5727 GB, free: 10.37 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000112/0.7697, allocations: 37.7 kB / 0.5727 GB, free: 10.32 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003981/0.7701, allocations: 399.8 kB / 0.5731 GB, free: 9.926 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002275/0.7704, allocations: 193.2 kB / 0.5733 GB, free: 9.734 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.27e-05/0.7704, allocations: 16 kB / 0.5733 GB, free: 9.719 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002301/0.7707, allocations: 386.8 kB / 0.5737 GB, free: 9.332 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007277/0.7714, allocations: 277.8 kB / 0.5739 GB, free: 9.062 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009489/0.7724, allocations: 0.5296 MB / 0.5744 GB, free: 8.414 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008553/0.7732, allocations: 329.8 kB / 0.5748 GB, free: 8.094 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.58e-05/0.7733, allocations: 4 kB / 0.5748 GB, free: 8.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002274/0.7755, allocations: 0.9516 MB / 0.5757 GB, free: 7.129 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001516/0.7771, allocations: 2.959 MB / 0.5786 GB, free: 3.938 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.305e-05/0.7771, allocations: 8 kB / 0.5786 GB, free: 3.93 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0063/0.7834, allocations: 0.7155 MB / 0.5793 GB, free: 3.207 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008328/0.7843, allocations: 199.6 kB / 0.5795 GB, free: 3.012 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00141/0.7857, allocations: 1.167 MB / 0.5806 GB, free: 1.793 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001269/0.787, allocations: 79.92 kB / 0.5807 GB, free: 1.715 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001541/0.7872, allocations: 47.97 kB / 0.5807 GB, free: 1.668 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.7872, allocations: 7.953 kB / 0.5807 GB, free: 1.66 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002193/0.7894, allocations: 0.7908 MB / 0.5815 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.197e-05/0.7894, allocations: 8 kB / 0.5815 GB, free: 0.8633 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.137e-05/0.7894, allocations: 12 kB / 0.5815 GB, free: 0.8516 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008482/0.7903, allocations: 227.9 kB / 0.5818 GB, free: 0.6289 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.668e-05/0.7903, allocations: 19.92 kB / 0.5818 GB, free: 0.6094 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001002/0.7914, allocations: 71.95 kB / 0.5818 GB, free: 0.5391 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.73e-05/0.7915, allocations: 43.98 kB / 0.5819 GB, free: 0.4961 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 8 (boundary_fixed1.medium.phase,boundary_fixed.medium.phase,massFlowRate1.medium.phase,massFlowRate2.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,simpleGenericOrifice1.state_b.phase,simpleGenericOrifice1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0006612/0.7921, allocations: 305.9 kB / 0.5822 GB, free: 192 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003121/0.7924, allocations: 86.92 kB / 0.5823 GB, free: 104 kB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005639/0.7981, allocations: 3.723 MB / 0.5859 GB, free: 12.36 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.625e-05/0.7982, allocations: 51.92 kB / 0.5859 GB, free: 12.31 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.336e-05/0.7982, allocations: 4 kB / 0.5859 GB, free: 12.31 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.514e-05/0.7982, allocations: 3.984 kB / 0.586 GB, free: 12.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002677/0.8009, allocations: 1.776 MB / 0.5877 GB, free: 10.48 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.315e-05/0.8009, allocations: 0 / 0.5877 GB, free: 10.48 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006197/0.8015, allocations: 159.8 kB / 0.5878 GB, free: 10.32 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002517/0.8041, allocations: 0.9012 MB / 0.5887 GB, free: 9.418 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.801e-05/0.8042, allocations: 12 kB / 0.5887 GB, free: 9.406 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001339/0.8055, allocations: 1.569 MB / 0.5903 GB, free: 7.785 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.8055, allocations: 3.938 kB / 0.5903 GB, free: 7.781 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003266/0.8088, allocations: 2.175 MB / 0.5924 GB, free: 5.539 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008279/0.8097, allocations: 453.8 kB / 0.5928 GB, free: 5.074 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002812/0.8099, allocations: 12 kB / 0.5928 GB, free: 5.062 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008145/0.8108, allocations: 79.8 kB / 0.5929 GB, free: 4.984 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001538/0.8109, allocations: 59.91 kB / 0.593 GB, free: 4.926 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.295e-05/0.811, allocations: 27.98 kB / 0.593 GB, free: 4.898 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001282/0.8123, allocations: 0.7671 MB / 0.5937 GB, free: 4.125 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.8123, allocations: 0 / 0.5937 GB, free: 4.125 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005697/0.818, allocations: 1.241 MB / 0.595 GB, free: 2.883 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 28 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,massFlowRate2.medium.phase,boundary_fixed1.medium.phase,$cse13.phase,$cse13.region,$cse17.phase,$cse17.region,$cse19.region3boundary,$cse20.region3boundary,$cse21.phase,$cse21.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,massFlowRate1.medium.phase,boundary_fixed.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.007054/0.8251, allocations: 1.124 MB / 0.5961 GB, free: 1.754 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003882/0.829, allocations: 1.52 MB / 0.5975 GB, free: 240 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.184e-06/0.829, allocations: 0 / 0.5975 GB, free: 240 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001643/0.8307, allocations: 0.885 MB / 0.5984 GB, free: 15.35 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003432/0.8341, allocations: 490.2 kB / 0.5989 GB, free: 14.88 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005929/0.8401, allocations: 3.495 MB / 0.6023 GB, free: 11.34 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001128/0.8412, allocations: 1.292 MB / 0.6035 GB, free: 10.02 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002356/0.8436, allocations: 1.22 MB / 0.6047 GB, free: 8.797 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000272/0.8439, allocations: 95.34 kB / 0.6048 GB, free: 8.703 MB / 478.1 MB Notification: Performance of SimCode: time 1.042e-06/0.8439, allocations: 3.938 kB / 0.6048 GB, free: 8.699 MB / 478.1 MB Notification: Performance of Templates: time 0.3407/1.185, allocations: 47.92 MB / 0.6516 GB, free: 151.3 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe 2>&1) Environment - environmentSimulation: