Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.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.TestFlowRate,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate",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.002782/0.002787, allocations: 188.6 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.219/2.219, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001179/0.001179, allocations: 94.84 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.3055/0.3055, allocations: 43.55 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004695/0.0004699, allocations: 8 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.13, allocations: 58.86 MB / 490.3 MB, free: 9.242 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate): time 0.06219/0.1922, allocations: 35.89 MB / 0.5139 GB, free: 5.258 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.366/0.5583, allocations: 13.4 MB / 0.527 GB, free: 12 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001012/0.5593, allocations: 20.69 kB / 0.527 GB, free: 12 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001323/0.5607, allocations: 246.6 kB / 0.5272 GB, free: 12 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01778/0.5785, allocations: 3.617 MB / 0.5308 GB, free: 11.95 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008937/0.5875, allocations: 1.728 MB / 0.5324 GB, free: 11.93 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001932/0.5895, allocations: 0.7054 MB / 0.5331 GB, free: 11.93 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007016/0.5902, allocations: 294 kB / 0.5334 GB, free: 11.9 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001923/0.5921, allocations: 486 kB / 0.5339 GB, free: 11.9 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009592/0.5931, allocations: 270.8 kB / 0.5341 GB, free: 11.9 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000113/0.5933, allocations: 22.88 kB / 0.5342 GB, free: 11.9 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02366/0.6169, allocations: 7.195 MB / 0.5412 GB, free: 11.76 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003359/0.6173, allocations: 97.88 kB / 0.5413 GB, free: 11.74 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004069/0.6178, allocations: 126.2 kB / 0.5414 GB, free: 11.71 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009938/0.6277, allocations: 3.113 MB / 0.5444 GB, free: 10.35 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.6278, allocations: 0 / 0.5444 GB, free: 10.35 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.447e-06/0.6278, allocations: 0 / 0.5444 GB, free: 10.35 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.28e-05/0.6278, allocations: 0 / 0.5444 GB, free: 10.35 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.005514/0.6333, allocations: 1.262 MB / 0.5457 GB, free: 9.504 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.803e-05/0.6334, allocations: 11.88 kB / 0.5457 GB, free: 9.504 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002617/0.6337, allocations: 81.53 kB / 0.5458 GB, free: 9.453 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003297/0.637, allocations: 280.5 kB / 0.546 GB, free: 9.359 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001102/0.6382, allocations: 405.4 kB / 0.5464 GB, free: 9.066 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.015e-05/0.6383, allocations: 33.69 kB / 0.5464 GB, free: 9.066 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.54e-05/0.6384, allocations: 43.55 kB / 0.5465 GB, free: 9.059 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002811/0.6412, allocations: 0.6876 MB / 0.5472 GB, free: 8.781 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.472e-05/0.6413, allocations: 4 kB / 0.5472 GB, free: 8.777 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.565e-05/0.6414, allocations: 16.88 kB / 0.5472 GB, free: 8.777 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.626e-05/0.6414, allocations: 14.3 kB / 0.5472 GB, free: 8.777 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002779/0.6442, allocations: 0.6148 MB / 0.5478 GB, free: 8.648 MB / 362.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.005579/0.6498, allocations: 2.993 MB / 0.5507 GB, free: 6.34 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002355/0.6522, allocations: 0.4929 MB / 0.5512 GB, free: 6.203 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1466/0.7989, allocations: 40.31 MB / 0.5906 GB, free: 13.24 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.724e-05/0.799, allocations: 40.28 kB / 0.5906 GB, free: 13.2 MB / 410.7 MB Notification: Performance of pre-optimization done (n=30): time 4.239e-06/0.799, allocations: 4 kB / 0.5906 GB, free: 13.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=30): time 0.005365/0.8044, allocations: 1.007 MB / 0.5916 GB, free: 12.34 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.368e-05/0.8045, allocations: 106.8 kB / 0.5917 GB, free: 12.21 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007376/0.8053, allocations: 407.2 kB / 0.5921 GB, free: 11.89 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.14e-05/0.8054, allocations: 28.39 kB / 0.5921 GB, free: 11.86 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002284/0.8056, allocations: 279.8 kB / 0.5924 GB, free: 11.64 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000143/0.8058, allocations: 109.2 kB / 0.5925 GB, free: 11.55 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.065e-05/0.8058, allocations: 4.625 kB / 0.5925 GB, free: 11.55 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.806, allocations: 331.4 kB / 0.5928 GB, free: 11.22 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006759/0.8067, allocations: 146.7 kB / 0.5929 GB, free: 11.12 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008009/0.8075, allocations: 277.7 kB / 0.5932 GB, free: 10.85 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007227/0.8082, allocations: 173.9 kB / 0.5934 GB, free: 10.73 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.202e-06/0.8083, allocations: 4 kB / 0.5934 GB, free: 10.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001851/0.8101, allocations: 484 kB / 0.5938 GB, free: 10.38 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006532/0.8108, allocations: 1.313 MB / 0.5951 GB, free: 8.996 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.827e-05/0.8109, allocations: 3.984 kB / 0.5951 GB, free: 8.992 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006683/0.8175, allocations: 373.8 kB / 0.5955 GB, free: 8.637 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00075/0.8184, allocations: 85.45 kB / 0.5956 GB, free: 8.562 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000876/0.8193, allocations: 0.6062 MB / 0.5961 GB, free: 7.969 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008075/0.8201, allocations: 73.31 kB / 0.5962 GB, free: 7.902 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.41e-05/0.8202, allocations: 26.11 kB / 0.5962 GB, free: 7.883 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.8202, allocations: 4 kB / 0.5962 GB, free: 7.879 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001625/0.8219, allocations: 409.1 kB / 0.5966 GB, free: 7.605 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.8219, allocations: 4 kB / 0.5966 GB, free: 7.602 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.8219, allocations: 8 kB / 0.5966 GB, free: 7.594 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008092/0.8228, allocations: 112.6 kB / 0.5968 GB, free: 7.496 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.376e-05/0.8228, allocations: 6.734 kB / 0.5968 GB, free: 7.492 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005312/0.8233, allocations: 58.52 kB / 0.5968 GB, free: 7.441 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.333e-05/0.8234, allocations: 24.23 kB / 0.5968 GB, free: 7.422 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 4 (boundary_fixed.medium.phase,massFlowRate1.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0004539/0.8239, allocations: 253.2 kB / 0.5971 GB, free: 7.199 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000169/0.8241, allocations: 47.44 kB / 0.5971 GB, free: 7.152 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004443/0.8285, allocations: 2.037 MB / 0.5991 GB, free: 5.824 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.173e-05/0.8286, allocations: 27.77 kB / 0.5991 GB, free: 5.805 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.408e-06/0.8286, allocations: 0 / 0.5991 GB, free: 5.805 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.555e-05/0.8287, allocations: 3.984 kB / 0.5991 GB, free: 5.801 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00185/0.8305, allocations: 1.015 MB / 0.6001 GB, free: 5.055 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.178e-05/0.8306, allocations: 0 / 0.6001 GB, free: 5.055 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000652/0.8313, allocations: 81.84 kB / 0.6002 GB, free: 4.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002683/0.834, allocations: 0.6341 MB / 0.6008 GB, free: 4.422 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.402e-05/0.8341, allocations: 14.11 kB / 0.6008 GB, free: 4.414 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001338/0.8355, allocations: 1.004 MB / 0.6018 GB, free: 3.59 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.172e-06/0.8355, allocations: 3.984 kB / 0.6018 GB, free: 3.586 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002967/0.8385, allocations: 1.333 MB / 0.6031 GB, free: 2.238 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005634/0.8391, allocations: 262.2 kB / 0.6034 GB, free: 1.965 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000123/0.8392, allocations: 7.953 kB / 0.6034 GB, free: 1.957 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006204/0.8399, allocations: 47.81 kB / 0.6034 GB, free: 1.91 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001531/0.84, allocations: 39.88 kB / 0.6035 GB, free: 1.871 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.748e-05/0.8401, allocations: 12 kB / 0.6035 GB, free: 1.859 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007905/0.8409, allocations: 390.8 kB / 0.6039 GB, free: 1.477 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.8409, allocations: 0 / 0.6039 GB, free: 1.477 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00543/0.8464, allocations: 1.148 MB / 0.605 GB, free: 336 kB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($cse2.phase,$cse2.region,$cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.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 (33): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01257/0.859, allocations: 2.81 MB / 0.6077 GB, free: 13.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003097/0.8621, allocations: 0.8194 MB / 0.6085 GB, free: 12.81 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.8622, allocations: 0 / 0.6085 GB, free: 12.81 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001286/0.8635, allocations: 498.1 kB / 0.609 GB, free: 12.33 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002588/0.8661, allocations: 277.5 kB / 0.6093 GB, free: 12.06 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01313/0.8793, allocations: 6.219 MB / 0.6153 GB, free: 5.766 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008116/0.8802, allocations: 0.9996 MB / 0.6163 GB, free: 4.738 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006179/0.8808, allocations: 287.3 kB / 0.6166 GB, free: 4.461 MB / 426.7 MB Notification: Performance of SimCode: time 1.373e-06/0.8808, allocations: 0 / 0.6166 GB, free: 4.461 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.007/4.888, allocations: 34.29 MB / 0.6501 GB, free: 2.176 MB / 458.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat does not exist to compare? outputFormat=mat