Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.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: translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestPressure,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pressure1.p|pressure2.p|relativePressure.p_rel|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestPressure,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pressure1.p|pressure2.p|relativePressure.p_rel|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001284/0.001284, allocations: 193.5 kB / 16.78 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 226.5 MB / 244.1 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008579/0.0008583, allocations: 95.31 kB / 296.1 MB, free: 6.691 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3725/0.3725, allocations: 44.83 MB / 393 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002859/0.0002859, allocations: 12 kB / 465.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4032/0.4035, allocations: 62.95 MB / 0.5165 GB, free: 37.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.22/7.623, allocations: 2.767 GB / 3.283 GB, free: 156.4 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003805/7.624, allocations: 93.52 kB / 3.283 GB, free: 156.4 MB / 0.5417 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.274/8.898, allocations: 400.8 MB / 3.675 GB, free: 42.46 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.915e-06/8.898, allocations: 0 / 3.675 GB, free: 42.46 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 3.251e-05/8.898, allocations: 19.69 kB / 3.675 GB, free: 42.45 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 97 * Number of variables: 97 Notification: Performance of Generate backend data structure: time 0.00658/8.905, allocations: 1.573 MB / 3.676 GB, free: 40.84 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/8.905, allocations: 8.031 kB / 3.676 GB, free: 40.83 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001896/8.907, allocations: 263.6 kB / 3.676 GB, free: 40.57 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007558/8.907, allocations: 441.8 kB / 3.677 GB, free: 40.11 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.28e-05/8.907, allocations: 30.12 kB / 3.677 GB, free: 40.08 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.711e-05/8.907, allocations: 36 kB / 3.677 GB, free: 40.04 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001467/8.909, allocations: 0.7017 MB / 3.678 GB, free: 39.29 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.796e-05/8.909, allocations: 0 / 3.678 GB, free: 39.29 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.976e-05/8.909, allocations: 20 kB / 3.678 GB, free: 39.27 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.273e-05/8.909, allocations: 8 kB / 3.678 GB, free: 39.26 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001399/8.91, allocations: 0.5914 MB / 3.678 GB, free: 38.68 MB / 0.5417 GB 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.00334/8.914, allocations: 3.247 MB / 3.681 GB, free: 35.22 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001201/8.915, allocations: 420.8 kB / 3.682 GB, free: 34.81 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003452/8.915, allocations: 164.6 kB / 3.682 GB, free: 34.65 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5346/9.45, allocations: 61.8 MB / 3.742 GB, free: 52.69 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.379e-05/9.45, allocations: 37.28 kB / 3.742 GB, free: 52.65 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=27): time 3.296e-06/9.45, allocations: 0 / 3.742 GB, free: 52.65 MB / 0.5417 GB Notification: Performance of matching and sorting (n=27): time 0.003457/9.454, allocations: 0.8975 MB / 3.743 GB, free: 52.52 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.523e-05/9.454, allocations: 109.6 kB / 3.743 GB, free: 52.39 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006027/9.454, allocations: 387 kB / 3.744 GB, free: 52.29 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 4.896e-05/9.454, allocations: 31.58 kB / 3.744 GB, free: 52.25 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.000196/9.455, allocations: 258.1 kB / 3.744 GB, free: 52.14 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001163/9.455, allocations: 91.42 kB / 3.744 GB, free: 52.1 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.519e-05/9.455, allocations: 9.156 kB / 3.744 GB, free: 52.1 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001205/9.455, allocations: 357.1 kB / 3.744 GB, free: 51.79 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003586/9.455, allocations: 137.6 kB / 3.745 GB, free: 51.79 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004358/9.456, allocations: 304.9 kB / 3.745 GB, free: 51.58 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008171/9.456, allocations: 446.2 kB / 3.745 GB, free: 51.4 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.246e-06/9.457, allocations: 5.656 kB / 3.745 GB, free: 51.4 MB / 0.5417 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001234/9.458, allocations: 0.5015 MB / 3.746 GB, free: 51.34 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001726/9.458, allocations: 242.8 kB / 3.746 GB, free: 51.07 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.431e-05/9.458, allocations: 3.938 kB / 3.746 GB, free: 51.07 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002497/9.46, allocations: 338.1 kB / 3.746 GB, free: 51.06 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003821/9.461, allocations: 100.3 kB / 3.746 GB, free: 51.06 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005212/9.461, allocations: 0.6003 MB / 3.747 GB, free: 50.55 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005859/9.462, allocations: 70.31 kB / 3.747 GB, free: 50.53 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.916e-05/9.462, allocations: 28.19 kB / 3.747 GB, free: 50.53 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/9.462, allocations: 3.875 kB / 3.747 GB, free: 50.53 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009745/9.463, allocations: 419.8 kB / 3.747 GB, free: 50.53 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/9.463, allocations: 4.812 kB / 3.747 GB, free: 50.53 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.918e-06/9.463, allocations: 14.31 kB / 3.748 GB, free: 50.52 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003839/9.464, allocations: 117.2 kB / 3.748 GB, free: 50.52 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.264e-05/9.464, allocations: 12.59 kB / 3.748 GB, free: 50.52 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004885/9.464, allocations: 65.25 kB / 3.748 GB, free: 50.51 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.451e-05/9.464, allocations: 22.52 kB / 3.748 GB, free: 50.51 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (45): * Single equations (assignments): 44 * 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.0003537/9.464, allocations: 252.6 kB / 3.748 GB, free: 50.32 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001295/9.465, allocations: 51.44 kB / 3.748 GB, free: 50.3 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002532/9.467, allocations: 1.893 MB / 3.75 GB, free: 50.13 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.493e-05/9.467, allocations: 22.69 kB / 3.75 GB, free: 50.13 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.298e-06/9.467, allocations: 3.25 kB / 3.75 GB, free: 50.13 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.276e-06/9.467, allocations: 6.562 kB / 3.75 GB, free: 50.13 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001262/9.468, allocations: 0.9607 MB / 3.751 GB, free: 49.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.027e-06/9.468, allocations: 4.734 kB / 3.751 GB, free: 49.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002661/9.469, allocations: 69.66 kB / 3.751 GB, free: 49.9 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001555/9.47, allocations: 0.64 MB / 3.752 GB, free: 49.86 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.383e-05/9.47, allocations: 12.89 kB / 3.752 GB, free: 49.86 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008742/9.471, allocations: 0.9915 MB / 3.753 GB, free: 49.33 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/9.471, allocations: 1.25 kB / 3.753 GB, free: 49.33 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002097/9.473, allocations: 1.295 MB / 3.754 GB, free: 49.07 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004725/9.474, allocations: 256.7 kB / 3.754 GB, free: 48.93 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001498/9.474, allocations: 5.281 kB / 3.754 GB, free: 48.93 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004673/9.474, allocations: 38.16 kB / 3.754 GB, free: 48.93 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/9.475, allocations: 39.34 kB / 3.754 GB, free: 48.93 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.656e-05/9.475, allocations: 18.72 kB / 3.754 GB, free: 48.93 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0006353/9.475, allocations: 372.2 kB / 3.754 GB, free: 48.84 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.71e-07/9.475, allocations: 1.562 kB / 3.754 GB, free: 48.84 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.00741/9.483, allocations: 1.217 MB / 3.756 GB, free: 48.83 MB / 0.5417 GB 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,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.phase,$cse10.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 (30): * Single equations (assignments): 23 * 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.01228/9.495, allocations: 1.641 MB / 3.757 GB, free: 48.71 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002373/9.497, allocations: 0.7919 MB / 3.758 GB, free: 48.7 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/9.498, allocations: 0 / 3.758 GB, free: 48.7 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0009266/9.498, allocations: 480.8 kB / 3.758 GB, free: 48.69 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001865/9.5, allocations: 236.9 kB / 3.759 GB, free: 48.69 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00334/9.504, allocations: 1.94 MB / 3.761 GB, free: 47.8 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006463/9.504, allocations: 0.9679 MB / 3.762 GB, free: 47.09 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001911/9.505, allocations: 45.31 kB / 3.762 GB, free: 47.09 MB / 0.5417 GB Notification: Performance of SimCode: time 1.062e-06/9.505, allocations: 1 kB / 3.762 GB, free: 47.09 MB / 0.5417 GB Notification: Performance of Templates: time 0.06021/9.565, allocations: 29.45 MB / 3.79 GB, free: 45.5 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Sensors/TestPressure/TestPressure.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches