Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.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: 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_3.2.3_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_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001722/0.001722, allocations: 181.3 kB / 17.41 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.525/1.525, allocations: 205.4 MB / 223.6 MB, free: 8.941 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.000809/0.0008088, allocations: 92.08 kB / 271.9 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3257/0.3257, allocations: 43.56 MB / 363.8 MB, free: 51.86 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003722/0.0003722, allocations: 16 kB / 432.6 MB, free: 5.641 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1269, allocations: 58.84 MB / 491.4 MB, free: 10.71 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.619/5.746, allocations: 2.76 GB / 3.24 GB, free: 143.4 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002522/5.746, allocations: 86.95 kB / 3.241 GB, free: 143.4 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/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.317/7.064, allocations: 396.3 MB / 3.628 GB, free: 57.99 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.324e-06/7.064, allocations: 0 / 3.628 GB, free: 57.99 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 3.408e-05/7.064, allocations: 9.438 kB / 3.628 GB, free: 57.99 MB / 0.4948 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.007403/7.071, allocations: 1.57 MB / 3.629 GB, free: 57.21 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.453e-05/7.071, allocations: 9.188 kB / 3.629 GB, free: 57.21 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00202/7.073, allocations: 243.9 kB / 3.629 GB, free: 57.19 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008948/7.074, allocations: 433.8 kB / 3.63 GB, free: 56.94 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.395e-05/7.074, allocations: 34.06 kB / 3.63 GB, free: 56.94 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.146e-05/7.074, allocations: 42.28 kB / 3.63 GB, free: 56.94 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001766/7.076, allocations: 0.695 MB / 3.63 GB, free: 56.75 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.194e-05/7.076, allocations: 5.031 kB / 3.63 GB, free: 56.74 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.664e-05/7.076, allocations: 20.86 kB / 3.63 GB, free: 56.74 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.26e-05/7.076, allocations: 18.19 kB / 3.63 GB, free: 56.74 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00169/7.078, allocations: 0.5822 MB / 3.631 GB, free: 56.74 MB / 0.4948 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.004146/7.082, allocations: 3.248 MB / 3.634 GB, free: 54.44 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001636/7.084, allocations: 427.8 kB / 3.635 GB, free: 54.41 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004576/7.084, allocations: 166.2 kB / 3.635 GB, free: 54.41 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09627/7.18, allocations: 55.54 MB / 3.689 GB, free: 20.13 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.583e-05/7.181, allocations: 41.34 kB / 3.689 GB, free: 20.09 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=27): time 3.025e-06/7.181, allocations: 0 / 3.689 GB, free: 20.09 MB / 0.4948 GB Notification: Performance of matching and sorting (n=27): time 0.003185/7.184, allocations: 0.8968 MB / 3.69 GB, free: 19.91 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.784e-05/7.184, allocations: 114 kB / 3.69 GB, free: 19.79 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005382/7.184, allocations: 388.7 kB / 3.69 GB, free: 19.67 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 5.184e-05/7.184, allocations: 29.39 kB / 3.69 GB, free: 19.64 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001583/7.185, allocations: 256.2 kB / 3.691 GB, free: 19.49 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 9.096e-05/7.185, allocations: 97.62 kB / 3.691 GB, free: 19.43 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.205e-05/7.185, allocations: 10.56 kB / 3.691 GB, free: 19.43 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 9.224e-05/7.185, allocations: 351.3 kB / 3.691 GB, free: 19.12 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003428/7.185, allocations: 130.5 kB / 3.691 GB, free: 19.12 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004521/7.186, allocations: 304.4 kB / 3.692 GB, free: 18.9 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008639/7.186, allocations: 454 kB / 3.692 GB, free: 18.7 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/7.187, allocations: 0 / 3.692 GB, free: 18.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001268/7.188, allocations: 0.4978 MB / 3.692 GB, free: 18.63 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001716/7.188, allocations: 244.1 kB / 3.693 GB, free: 18.36 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.365e-05/7.188, allocations: 3.125 kB / 3.693 GB, free: 18.36 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002535/7.191, allocations: 339.2 kB / 3.693 GB, free: 18.34 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004008/7.191, allocations: 103.7 kB / 3.693 GB, free: 18.33 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005052/7.191, allocations: 0.6024 MB / 3.694 GB, free: 17.81 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000597/7.192, allocations: 74.59 kB / 3.694 GB, free: 17.78 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.187e-05/7.192, allocations: 21.62 kB / 3.694 GB, free: 17.78 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.446e-06/7.192, allocations: 3.906 kB / 3.694 GB, free: 17.78 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008788/7.193, allocations: 422.7 kB / 3.694 GB, free: 17.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/7.193, allocations: 3.875 kB / 3.694 GB, free: 17.77 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.258e-06/7.193, allocations: 6.062 kB / 3.694 GB, free: 17.77 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000373/7.193, allocations: 122.3 kB / 3.694 GB, free: 17.77 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.839e-06/7.193, allocations: 10.72 kB / 3.694 GB, free: 17.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004633/7.194, allocations: 73.09 kB / 3.694 GB, free: 17.74 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.721e-05/7.194, allocations: 22.28 kB / 3.694 GB, free: 17.74 MB / 0.4948 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.0003068/7.194, allocations: 262.3 kB / 3.695 GB, free: 17.54 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001227/7.194, allocations: 42.81 kB / 3.695 GB, free: 17.52 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002224/7.197, allocations: 1.896 MB / 3.697 GB, free: 17.29 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.233e-05/7.197, allocations: 28.77 kB / 3.697 GB, free: 17.29 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.251e-06/7.197, allocations: 0 / 3.697 GB, free: 17.29 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/7.197, allocations: 3.375 kB / 3.697 GB, free: 17.29 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001052/7.198, allocations: 0.9622 MB / 3.698 GB, free: 17.03 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/7.198, allocations: 3.812 kB / 3.698 GB, free: 17.03 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000252/7.198, allocations: 65.48 kB / 3.698 GB, free: 17.03 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001323/7.199, allocations: 0.6439 MB / 3.698 GB, free: 16.98 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.463e-05/7.199, allocations: 18.03 kB / 3.698 GB, free: 16.97 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000627/7.2, allocations: 0.9908 MB / 3.699 GB, free: 16.44 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/7.2, allocations: 0 / 3.699 GB, free: 16.44 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001407/7.201, allocations: 1.296 MB / 3.701 GB, free: 15.88 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003415/7.202, allocations: 254.1 kB / 3.701 GB, free: 15.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001151/7.202, allocations: 11.94 kB / 3.701 GB, free: 15.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003784/7.202, allocations: 32.72 kB / 3.701 GB, free: 15.66 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.883e-05/7.202, allocations: 30.83 kB / 3.701 GB, free: 15.66 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.556e-05/7.202, allocations: 11.62 kB / 3.701 GB, free: 15.65 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0004185/7.203, allocations: 379.4 kB / 3.701 GB, free: 15.48 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.41e-07/7.203, allocations: 0 / 3.701 GB, free: 15.48 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005342/7.208, allocations: 1.21 MB / 3.702 GB, free: 15.23 MB / 0.4948 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.008718/7.217, allocations: 1.628 MB / 3.704 GB, free: 14.82 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.001945/7.219, allocations: 0.8007 MB / 3.705 GB, free: 14.55 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/7.219, allocations: 0 / 3.705 GB, free: 14.55 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0006591/7.22, allocations: 488 kB / 3.705 GB, free: 14.33 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001513/7.221, allocations: 241.6 kB / 3.705 GB, free: 14.27 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002541/7.224, allocations: 1.936 MB / 3.707 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009893/7.225, allocations: 0.9696 MB / 3.708 GB, free: 28.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001466/7.225, allocations: 46.23 kB / 3.708 GB, free: 28.39 MB / 0.5105 GB Notification: Performance of SimCode: time 7.31e-07/7.225, allocations: 0 / 3.708 GB, free: 28.39 MB / 0.5105 GB Notification: Performance of Templates: time 0.04271/7.268, allocations: 29.32 MB / 3.737 GB, free: 19.93 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Sensors/TestPressure/TestPressure.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches