Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001198/0.001197, allocations: 202.3 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 225.6 MB / 234.8 MB, free: 3.281 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000994/0.000994, allocations: 92.56 kB / 286.7 MB, free: 5.281 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2001/0.2001, allocations: 45.15 MB / 383.8 MB, free: 276 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.881e-05/2.89e-05, allocations: 4 kB / 453.3 MB, free: 75.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1195, allocations: 63.25 MB / 0.5045 GB, free: 12.52 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.601/7.721, allocations: 2.766 GB / 3.271 GB, free: 74.73 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000232/7.721, allocations: 82.02 kB / 3.271 GB, free: 74.69 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:306:3-308:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "Mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd - DAE generated: time 1.472/9.193, allocations: 401.7 MB / 3.663 GB, free: 70.18 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.382e-06/9.193, allocations: 0 / 3.663 GB, free: 70.18 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.379e-05/9.193, allocations: 15.44 kB / 3.663 GB, free: 70.17 MB / 0.5261 GB 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.006507/9.2, allocations: 1.554 MB / 3.665 GB, free: 69.27 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.99e-05/9.2, allocations: 10.06 kB / 3.665 GB, free: 69.27 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00263/9.203, allocations: 306.8 kB / 3.665 GB, free: 69.23 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001006/9.204, allocations: 444.7 kB / 3.665 GB, free: 68.91 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.839e-05/9.204, allocations: 22.39 kB / 3.665 GB, free: 68.9 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.941e-05/9.204, allocations: 23.75 kB / 3.665 GB, free: 68.9 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000657/9.204, allocations: 371.4 kB / 3.666 GB, free: 68.77 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006815/9.205, allocations: 476 kB / 3.666 GB, free: 68.5 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/9.205, allocations: 3.953 kB / 3.666 GB, free: 68.5 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.195e-05/9.205, allocations: 4.812 kB / 3.666 GB, free: 68.5 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/9.205, allocations: 10.19 kB / 3.666 GB, free: 68.5 MB / 0.5261 GB Warning: The model contains alias variables with conflicting start and/or 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.09028/9.296, allocations: 56.79 MB / 3.722 GB, free: 21.52 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004566/9.296, allocations: 258.6 kB / 3.722 GB, free: 21.26 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00017/9.296, allocations: 124.8 kB / 3.722 GB, free: 21.13 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4791/9.775, allocations: 62 MB / 3.783 GB, free: 72.21 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.266e-05/9.775, allocations: 36.3 kB / 3.783 GB, free: 72.17 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=24): time 2.475e-06/9.775, allocations: 0 / 3.783 GB, free: 72.17 MB / 0.5417 GB Notification: Performance of matching and sorting (n=24): time 0.002943/9.778, allocations: 0.618 MB / 3.783 GB, free: 72.12 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.426e-05/9.778, allocations: 108.6 kB / 3.783 GB, free: 72 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005499/9.779, allocations: 299.8 kB / 3.784 GB, free: 71.9 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.709e-05/9.779, allocations: 27.08 kB / 3.784 GB, free: 71.87 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002287/9.779, allocations: 271.9 kB / 3.784 GB, free: 71.75 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 9.623e-05/9.779, allocations: 84.47 kB / 3.784 GB, free: 71.7 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.025e-05/9.779, allocations: 0 / 3.784 GB, free: 71.7 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001311/9.78, allocations: 349 kB / 3.784 GB, free: 71.39 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001833/9.78, allocations: 104 kB / 3.784 GB, free: 71.39 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00028/9.78, allocations: 215.8 kB / 3.785 GB, free: 71.26 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00115/9.781, allocations: 253.8 kB / 3.785 GB, free: 71.26 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/9.781, allocations: 3.281 kB / 3.785 GB, free: 71.26 MB / 0.5417 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001587/9.783, allocations: 0.5121 MB / 3.785 GB, free: 71.2 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002834/9.783, allocations: 1.315 MB / 3.787 GB, free: 69.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/9.783, allocations: 4.156 kB / 3.787 GB, free: 69.84 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00023/9.783, allocations: 56.2 kB / 3.787 GB, free: 69.83 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003726/9.784, allocations: 92.7 kB / 3.787 GB, free: 69.83 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008576/9.785, allocations: 0.6604 MB / 3.787 GB, free: 69.32 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000514/9.785, allocations: 75.3 kB / 3.788 GB, free: 69.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.408e-05/9.785, allocations: 22.73 kB / 3.788 GB, free: 69.3 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 9.127e-06/9.785, allocations: 6.094 kB / 3.788 GB, free: 69.3 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001055/9.786, allocations: 368.3 kB / 3.788 GB, free: 69.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/9.786, allocations: 4.375 kB / 3.788 GB, free: 69.3 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.915e-06/9.786, allocations: 6.094 kB / 3.788 GB, free: 69.3 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004457/9.787, allocations: 111.6 kB / 3.788 GB, free: 69.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.21e-05/9.787, allocations: 11.77 kB / 3.788 GB, free: 69.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000364/9.787, allocations: 59.59 kB / 3.788 GB, free: 69.29 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.812e-05/9.787, allocations: 20.42 kB / 3.788 GB, free: 69.29 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 4 (massFlowRate1.medium.phase,boundary_fixed.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase) * Number of discrete 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.0001338/9.787, allocations: 117.7 kB / 3.788 GB, free: 69.18 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001291/9.789, allocations: 398.2 kB / 3.789 GB, free: 69.12 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.91e-05/9.789, allocations: 46.02 kB / 3.789 GB, free: 69.1 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002375/9.791, allocations: 1.577 MB / 3.79 GB, free: 68.95 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.559e-05/9.791, allocations: 27.48 kB / 3.79 GB, free: 68.95 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/9.791, allocations: 6.875 kB / 3.79 GB, free: 68.95 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.72e-06/9.791, allocations: 0 / 3.79 GB, free: 68.95 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002344/9.794, allocations: 2.195 MB / 3.792 GB, free: 68.58 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/9.794, allocations: 0 / 3.792 GB, free: 68.58 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000201/9.794, allocations: 51.02 kB / 3.792 GB, free: 68.58 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000564/9.794, allocations: 0.59 MB / 3.793 GB, free: 68.55 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.845e-05/9.794, allocations: 3.188 kB / 3.793 GB, free: 68.55 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008873/9.795, allocations: 1.111 MB / 3.794 GB, free: 68.02 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/9.795, allocations: 7.422 kB / 3.794 GB, free: 68.02 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001391/9.797, allocations: 1.218 MB / 3.795 GB, free: 67.74 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002452/9.797, allocations: 189.2 kB / 3.795 GB, free: 67.61 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.839e-05/9.797, allocations: 0 / 3.795 GB, free: 67.61 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003396/9.797, allocations: 41.36 kB / 3.796 GB, free: 67.6 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.765e-05/9.797, allocations: 22.7 kB / 3.796 GB, free: 67.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.45e-05/9.798, allocations: 12.81 kB / 3.796 GB, free: 67.6 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001982/9.798, allocations: 231.7 kB / 3.796 GB, free: 67.52 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.02e-07/9.798, allocations: 0 / 3.796 GB, free: 67.52 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.00591/9.804, allocations: 1.178 MB / 3.797 GB, free: 67.51 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 13 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,massFlowRate1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.01203/9.816, allocations: 3.336 MB / 3.8 GB, free: 66.54 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001493/9.817, allocations: 0.6363 MB / 3.801 GB, free: 66.53 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/9.817, allocations: 3.812 kB / 3.801 GB, free: 66.53 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0004174/9.818, allocations: 401.3 kB / 3.801 GB, free: 66.52 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00109/9.819, allocations: 169.4 kB / 3.801 GB, free: 66.52 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005299/9.824, allocations: 1.469 MB / 3.803 GB, free: 66.16 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004129/9.825, allocations: 0.9447 MB / 3.804 GB, free: 65.46 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001254/9.826, allocations: 0.6501 MB / 3.804 GB, free: 65.45 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003108/9.826, allocations: 226.1 kB / 3.805 GB, free: 65.45 MB / 0.5417 GB Notification: Performance of SimCode: time 8.62e-07/9.826, allocations: 1.656 kB / 3.805 GB, free: 65.45 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07663/9.903, allocations: 38.15 MB / 3.842 GB, free: 63.72 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000198/9.903, allocations: 176.9 kB / 3.842 GB, free: 63.53 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.371/13.27, allocations: 0 / 3.842 GB, free: 63.53 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat does not exist to compare? outputFormat=mat