Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001604/0.00161, allocations: 188.9 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.143/2.143, allocations: 205.4 MB / 222.5 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001255/0.001254, allocations: 106.7 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3109/0.3109, allocations: 43.56 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005015/0.0005016, allocations: 11.98 kB / 431.5 MB, free: 20.17 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1648/0.1653, allocations: 58.86 MB / 490.3 MB, free: 9.242 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity): time 0.4515/0.6169, allocations: 54.66 MB / 0.5322 GB, free: 12.34 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.04174/0.6587, allocations: 22.88 MB / 0.5546 GB, free: 5.492 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001708/0.6605, allocations: 32.81 kB / 0.5546 GB, free: 5.473 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002394/0.6629, allocations: 464.4 kB / 0.555 GB, free: 5.219 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02028/0.6833, allocations: 4.091 MB / 0.559 GB, free: 2.809 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01427/0.6976, allocations: 3.044 MB / 0.562 GB, free: 0.5 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.003759/0.7014, allocations: 1.317 MB / 0.5633 GB, free: 15.66 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001516/0.703, allocations: 0.5592 MB / 0.5638 GB, free: 15.3 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01995/0.723, allocations: 6.471 MB / 0.5702 GB, free: 13.02 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0018/0.7248, allocations: 0.5058 MB / 0.5706 GB, free: 12.51 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003081/0.7252, allocations: 44 kB / 0.5707 GB, free: 12.47 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02306/0.7483, allocations: 6.746 MB / 0.5773 GB, free: 5.715 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000707/0.749, allocations: 195.2 kB / 0.5775 GB, free: 5.523 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007607/0.7498, allocations: 213.3 kB / 0.5777 GB, free: 5.309 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01173/0.7616, allocations: 3.369 MB / 0.581 GB, free: 1.934 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.7617, allocations: 0 / 0.581 GB, free: 1.934 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.29e-06/0.7617, allocations: 4 kB / 0.581 GB, free: 1.93 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.977e-05/0.7617, allocations: 3.938 kB / 0.581 GB, free: 1.926 MB / 378.7 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.00677/0.7685, allocations: 1.618 MB / 0.5825 GB, free: 260 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.825e-05/0.7686, allocations: 12.03 kB / 0.5826 GB, free: 248 kB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003836/0.769, allocations: 118.7 kB / 0.5827 GB, free: 120 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007603/0.7766, allocations: 0.6194 MB / 0.5833 GB, free: 15.5 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001852/0.7785, allocations: 0.6054 MB / 0.5839 GB, free: 14.85 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001201/0.7787, allocations: 62 kB / 0.5839 GB, free: 14.79 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002179/0.7789, allocations: 72 kB / 0.584 GB, free: 14.72 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005932/0.7849, allocations: 1.359 MB / 0.5853 GB, free: 13.27 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.909e-05/0.785, allocations: 7.938 kB / 0.5853 GB, free: 13.26 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001802/0.7852, allocations: 36 kB / 0.5854 GB, free: 13.22 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.739e-05/0.7852, allocations: 16 kB / 0.5854 GB, free: 13.21 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006223/0.7914, allocations: 1.247 MB / 0.5866 GB, free: 11.96 MB / 394.7 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.01349/0.805, allocations: 5.756 MB / 0.5922 GB, free: 5.832 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005539/0.8106, allocations: 1.019 MB / 0.5932 GB, free: 4.797 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1221/0.9327, allocations: 32.6 MB / 0.625 GB, free: 356 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.964e-05/0.9328, allocations: 46.56 kB / 0.6251 GB, free: 300 kB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000951/0.9338, allocations: 107.1 kB / 0.6252 GB, free: 192 kB / 426.7 MB Notification: Performance of pre-optimization done (n=58): time 3.937e-06/0.9338, allocations: 0 / 0.6252 GB, free: 192 kB / 426.7 MB Notification: Performance of matching and sorting (n=58): time 0.01086/0.9447, allocations: 1.882 MB / 0.627 GB, free: 14.25 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001448/0.9449, allocations: 187.9 kB / 0.6272 GB, free: 14.03 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00139/0.9463, allocations: 0.6685 MB / 0.6279 GB, free: 13.35 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002008/0.9466, allocations: 37.7 kB / 0.6279 GB, free: 13.31 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004405/0.947, allocations: 414.3 kB / 0.6283 GB, free: 12.9 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003767/0.9474, allocations: 197.1 kB / 0.6285 GB, free: 12.71 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.032e-05/0.9475, allocations: 16 kB / 0.6285 GB, free: 12.69 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.9477, allocations: 338.8 kB / 0.6288 GB, free: 12.35 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001389/0.9491, allocations: 281.8 kB / 0.6291 GB, free: 12.07 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001667/0.9508, allocations: 0.5297 MB / 0.6296 GB, free: 11.43 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001582/0.9524, allocations: 335.6 kB / 0.6299 GB, free: 11.1 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-05/0.9525, allocations: 3.953 kB / 0.6299 GB, free: 11.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.003931/0.9564, allocations: 0.9018 MB / 0.6308 GB, free: 10.18 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001579/0.9581, allocations: 2.967 MB / 0.6337 GB, free: 6.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.776e-05/0.9582, allocations: 8 kB / 0.6337 GB, free: 6.973 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01318/0.9714, allocations: 0.6961 MB / 0.6344 GB, free: 6.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001494/0.9729, allocations: 195.7 kB / 0.6346 GB, free: 6.078 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001521/0.9745, allocations: 1.179 MB / 0.6357 GB, free: 4.848 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001484/0.976, allocations: 75.95 kB / 0.6358 GB, free: 4.773 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001871/0.9763, allocations: 43.98 kB / 0.6358 GB, free: 4.73 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.9763, allocations: 4 kB / 0.6358 GB, free: 4.727 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003515/0.9798, allocations: 0.7964 MB / 0.6366 GB, free: 3.93 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.933e-05/0.9799, allocations: 8.125 kB / 0.6366 GB, free: 3.922 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.418e-05/0.9799, allocations: 16 kB / 0.6366 GB, free: 3.906 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001693/0.9816, allocations: 227.7 kB / 0.6369 GB, free: 3.684 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.827e-05/0.9817, allocations: 15.94 kB / 0.6369 GB, free: 3.668 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001056/0.9828, allocations: 87.78 kB / 0.637 GB, free: 3.582 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001349/0.983, allocations: 39.98 kB / 0.637 GB, free: 3.543 MB / 442.7 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.0007581/0.9837, allocations: 308.8 kB / 0.6373 GB, free: 3.23 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003005/0.984, allocations: 86.97 kB / 0.6374 GB, free: 3.145 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008796/0.9928, allocations: 3.707 MB / 0.641 GB, free: 15.41 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.504e-05/0.993, allocations: 47.88 kB / 0.641 GB, free: 15.37 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.79e-05/0.993, allocations: 11.94 kB / 0.6411 GB, free: 15.36 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.389e-05/0.9931, allocations: 3.984 kB / 0.6411 GB, free: 15.35 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003565/0.9966, allocations: 1.776 MB / 0.6428 GB, free: 13.53 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.12e-05/0.9967, allocations: 4 kB / 0.6428 GB, free: 13.53 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001278/0.998, allocations: 159.8 kB / 0.643 GB, free: 13.37 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004654/1.003, allocations: 0.893 MB / 0.6438 GB, free: 12.47 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001642/1.003, allocations: 20 kB / 0.6438 GB, free: 12.45 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00201/1.005, allocations: 1.567 MB / 0.6454 GB, free: 10.84 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/1.005, allocations: 0 / 0.6454 GB, free: 10.84 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005411/1.01, allocations: 2.183 MB / 0.6475 GB, free: 8.59 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001138/1.012, allocations: 454 kB / 0.6479 GB, free: 8.125 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002876/1.012, allocations: 15.97 kB / 0.648 GB, free: 8.109 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001236/1.013, allocations: 67.95 kB / 0.648 GB, free: 8.043 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002617/1.014, allocations: 71.61 kB / 0.6481 GB, free: 7.973 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.984e-05/1.014, allocations: 23.98 kB / 0.6481 GB, free: 7.949 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001773/1.015, allocations: 0.7594 MB / 0.6489 GB, free: 7.184 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.012e-06/1.015, allocations: 0 / 0.6489 GB, free: 7.184 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005803/1.021, allocations: 1.257 MB / 0.6501 GB, free: 5.926 MB / 458.7 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.01302/1.034, allocations: 3.626 MB / 0.6536 GB, free: 2.223 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006037/1.04, allocations: 1.52 MB / 0.6551 GB, free: 0.6992 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.007e-05/1.041, allocations: 0 / 0.6551 GB, free: 0.6992 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00251/1.043, allocations: 0.8883 MB / 0.656 GB, free: 15.81 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004828/1.048, allocations: 493.2 kB / 0.6564 GB, free: 15.34 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02391/1.072, allocations: 12.21 MB / 0.6684 GB, free: 2.844 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00121/1.073, allocations: 1.291 MB / 0.6696 GB, free: 1.52 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001211/1.074, allocations: 0.5618 MB / 0.6702 GB, free: 0.957 MB / 474.7 MB Notification: Performance of SimCode: time 1.843e-06/1.074, allocations: 0 / 0.6702 GB, free: 0.957 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.493/5.568, allocations: 49.48 MB / 0.7185 GB, free: 193.7 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity_res.mat does not exist to compare? outputFormat=mat