Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001164/0.001165, allocations: 96.92 kB / 16.99 MB, free: 5.941 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.0011/0.0011, allocations: 183.4 kB / 17.87 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 223.2 MB / 241.8 MB, free: 14.65 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.217/0.217, allocations: 44.22 MB / 337.1 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003309/0.000331, allocations: 8 kB / 409.6 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1478/0.1482, allocations: 61.93 MB / 471.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate): time 0.03901/0.1873, allocations: 35.88 MB / 0.4955 GB, free: 9.645 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3397/0.527, allocations: 13.43 MB / 0.5087 GB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001218/0.5283, allocations: 19.97 kB / 0.5087 GB, free: 12.32 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001265/0.5295, allocations: 251.5 kB / 0.5089 GB, free: 12.32 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0152/0.5448, allocations: 3.625 MB / 0.5125 GB, free: 12.29 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007451/0.5522, allocations: 1.732 MB / 0.5141 GB, free: 12.28 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002197/0.5545, allocations: 0.7057 MB / 0.5148 GB, free: 12.28 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006696/0.5551, allocations: 288.1 kB / 0.5151 GB, free: 12.26 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001193/0.5563, allocations: 494.7 kB / 0.5156 GB, free: 12.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005279/0.5569, allocations: 275.1 kB / 0.5158 GB, free: 12.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.555e-05/0.557, allocations: 22.19 kB / 0.5159 GB, free: 12.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02145/0.5784, allocations: 7.196 MB / 0.5229 GB, free: 12.23 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003998/0.5789, allocations: 101.6 kB / 0.523 GB, free: 12.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005126/0.5794, allocations: 126.5 kB / 0.5231 GB, free: 12.2 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01068/0.5901, allocations: 3.118 MB / 0.5262 GB, free: 11.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.5901, allocations: 0 / 0.5262 GB, free: 11.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.5901, allocations: 0 / 0.5262 GB, free: 11.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.5902, allocations: 0 / 0.5262 GB, free: 11.07 MB / 382.1 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.006285/0.5964, allocations: 1.266 MB / 0.5274 GB, free: 10.22 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.5965, allocations: 10.72 kB / 0.5274 GB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.366e-05/0.5966, allocations: 77.7 kB / 0.5275 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001971/0.5986, allocations: 286.8 kB / 0.5277 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005963/0.5992, allocations: 403.7 kB / 0.5281 GB, free: 9.789 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.505e-05/0.5992, allocations: 34.27 kB / 0.5282 GB, free: 9.785 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.866e-05/0.5993, allocations: 35.94 kB / 0.5282 GB, free: 9.785 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001603/0.6009, allocations: 0.6907 MB / 0.5289 GB, free: 9.504 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.6009, allocations: 6.484 kB / 0.5289 GB, free: 9.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.992e-05/0.601, allocations: 19.09 kB / 0.5289 GB, free: 9.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.686e-05/0.601, allocations: 11.09 kB / 0.5289 GB, free: 9.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001572/0.6026, allocations: 0.6134 MB / 0.5295 GB, free: 9.367 MB / 382.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.003651/0.6063, allocations: 2.988 MB / 0.5324 GB, free: 7.066 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001474/0.6077, allocations: 0.4946 MB / 0.5329 GB, free: 6.93 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08506/0.6928, allocations: 40.31 MB / 0.5723 GB, free: 15.03 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.076e-05/0.6929, allocations: 45.12 kB / 0.5723 GB, free: 14.99 MB / 430.1 MB Notification: Performance of pre-optimization done (n=30): time 2.484e-06/0.6929, allocations: 0 / 0.5723 GB, free: 14.99 MB / 430.1 MB Notification: Performance of matching and sorting (n=30): time 0.003415/0.6963, allocations: 0.995 MB / 0.5733 GB, free: 14.14 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.437e-05/0.6964, allocations: 110.8 kB / 0.5734 GB, free: 14 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005052/0.6969, allocations: 411.4 kB / 0.5738 GB, free: 13.68 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.157e-05/0.697, allocations: 32.7 kB / 0.5738 GB, free: 13.65 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001856/0.6972, allocations: 245.6 kB / 0.574 GB, free: 13.47 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.536e-05/0.6973, allocations: 99.22 kB / 0.5741 GB, free: 13.39 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.134e-05/0.6973, allocations: 8.688 kB / 0.5741 GB, free: 13.39 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.6975, allocations: 355.1 kB / 0.5745 GB, free: 13.05 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003589/0.6978, allocations: 146.7 kB / 0.5746 GB, free: 12.95 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004274/0.6983, allocations: 271.6 kB / 0.5749 GB, free: 12.68 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003799/0.6987, allocations: 170.2 kB / 0.575 GB, free: 12.57 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.6987, allocations: 0 / 0.575 GB, free: 12.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001085/0.6998, allocations: 0.5046 MB / 0.5755 GB, free: 12.19 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006078/0.7004, allocations: 1.313 MB / 0.5768 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.7004, allocations: 6.734 kB / 0.5768 GB, free: 10.79 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00317/0.7036, allocations: 368.2 kB / 0.5772 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003957/0.704, allocations: 99.25 kB / 0.5773 GB, free: 10.36 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000582/0.7046, allocations: 0.607 MB / 0.5779 GB, free: 9.766 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005683/0.7052, allocations: 74.06 kB / 0.5779 GB, free: 9.699 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.194e-05/0.7052, allocations: 19.25 kB / 0.578 GB, free: 9.684 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/0.7052, allocations: 2.344 kB / 0.578 GB, free: 9.684 MB / 430.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009235/0.7062, allocations: 411.3 kB / 0.5784 GB, free: 9.406 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.7062, allocations: 7.953 kB / 0.5784 GB, free: 9.398 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.572e-06/0.7062, allocations: 4 kB / 0.5784 GB, free: 9.395 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003934/0.7066, allocations: 109.2 kB / 0.5785 GB, free: 9.301 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.7066, allocations: 14.98 kB / 0.5785 GB, free: 9.289 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004047/0.707, allocations: 66.09 kB / 0.5785 GB, free: 9.23 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.175e-05/0.7071, allocations: 19.38 kB / 0.5786 GB, free: 9.215 MB / 430.1 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.0003304/0.7074, allocations: 249 kB / 0.5788 GB, free: 8.996 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001575/0.7076, allocations: 54.28 kB / 0.5789 GB, free: 8.945 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002535/0.7101, allocations: 2.029 MB / 0.5808 GB, free: 7.617 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.293e-05/0.7102, allocations: 31.2 kB / 0.5809 GB, free: 7.594 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.7102, allocations: 4 kB / 0.5809 GB, free: 7.59 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.7102, allocations: 0 / 0.5809 GB, free: 7.59 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001192/0.7114, allocations: 1.023 MB / 0.5819 GB, free: 6.844 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.7114, allocations: 0 / 0.5819 GB, free: 6.844 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003031/0.7117, allocations: 75 kB / 0.5819 GB, free: 6.773 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001621/0.7134, allocations: 0.6295 MB / 0.5826 GB, free: 6.219 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.667e-05/0.7134, allocations: 7.875 kB / 0.5826 GB, free: 6.215 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001172/0.7146, allocations: 1.015 MB / 0.5836 GB, free: 5.387 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.7146, allocations: 0 / 0.5836 GB, free: 5.387 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002214/0.7168, allocations: 1.335 MB / 0.5849 GB, free: 4.457 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005533/0.7174, allocations: 260.5 kB / 0.5851 GB, free: 4.219 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.36e-05/0.7175, allocations: 12.5 kB / 0.5851 GB, free: 4.211 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003809/0.7179, allocations: 41.56 kB / 0.5852 GB, free: 4.176 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001502/0.718, allocations: 36.33 kB / 0.5852 GB, free: 4.145 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.538e-05/0.7181, allocations: 14.88 kB / 0.5852 GB, free: 4.133 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006285/0.7187, allocations: 393.3 kB / 0.5856 GB, free: 3.836 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.555e-06/0.7187, allocations: 0 / 0.5856 GB, free: 3.836 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0061/0.7248, allocations: 1.154 MB / 0.5867 GB, free: 2.738 MB / 430.1 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.01024/0.7351, allocations: 2.806 MB / 0.5894 GB, free: 388 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002073/0.7372, allocations: 0.8162 MB / 0.5902 GB, free: 15.81 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/0.7372, allocations: 0 / 0.5902 GB, free: 15.81 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007457/0.738, allocations: 497.7 kB / 0.5907 GB, free: 15.54 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001543/0.7396, allocations: 279.5 kB / 0.591 GB, free: 15.31 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01053/0.7501, allocations: 6.187 MB / 0.597 GB, free: 9.645 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006866/0.7508, allocations: 0.9939 MB / 0.598 GB, free: 8.625 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001148/0.752, allocations: 0.5634 MB / 0.5985 GB, free: 8.078 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003827/0.7524, allocations: 283.2 kB / 0.5988 GB, free: 8.012 MB / 446.1 MB Notification: Performance of SimCode: time 3.096e-06/0.7524, allocations: 0 / 0.5988 GB, free: 8.012 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09773/0.8501, allocations: 49.8 MB / 0.6474 GB, free: 6.59 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003184/0.8505, allocations: 266.7 kB / 0.6477 GB, free: 6.223 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.459/5.309, allocations: 0 / 0.6477 GB, free: 6.223 MB / 494.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat does not exist to compare? outputFormat=mat