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/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|massFlowRate.m_flow|volumeFlowRate.V_flow|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|massFlowRate.m_flow|volumeFlowRate.V_flow|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009751/0.0009751, allocations: 95.88 kB / 18.01 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001253/0.001254, allocations: 206.5 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 227.7 MB / 247.5 MB, free: 11.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2125/0.2125, allocations: 46.18 MB / 345.9 MB, free: 11.38 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002551/0.0002551, allocations: 12 kB / 420.2 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1277, allocations: 63.56 MB / 483.7 MB, free: 4.148 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate): time 0.3024/0.4301, allocations: 42.82 MB / 0.5142 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01898/0.4491, allocations: 16.48 MB / 0.5303 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006785/0.4499, allocations: 15.78 kB / 0.5303 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009161/0.4508, allocations: 263.9 kB / 0.5306 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01358/0.4644, allocations: 3.732 MB / 0.5342 GB, free: 9.586 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00682/0.4712, allocations: 1.816 MB / 0.536 GB, free: 9.266 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002504/0.4737, allocations: 1.554 MB / 0.5375 GB, free: 9.016 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006625/0.4744, allocations: 284.7 kB / 0.5378 GB, free: 8.98 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0013/0.4757, allocations: 0.4927 MB / 0.5383 GB, free: 8.863 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006178/0.4763, allocations: 383 kB / 0.5386 GB, free: 8.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.637e-05/0.4764, allocations: 25.69 kB / 0.5386 GB, free: 8.766 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01869/0.4951, allocations: 7.319 MB / 0.5458 GB, free: 5.23 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001902/0.4953, allocations: 103.8 kB / 0.5459 GB, free: 5.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000439/0.4958, allocations: 295 kB / 0.5462 GB, free: 4.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005797/0.5016, allocations: 3.167 MB / 0.5493 GB, free: 3.32 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.5016, allocations: 0 / 0.5493 GB, free: 3.32 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.5016, allocations: 0 / 0.5493 GB, free: 3.32 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.927e-06/0.5017, allocations: 0 / 0.5493 GB, free: 3.32 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.003467/0.5051, allocations: 1.261 MB / 0.5505 GB, free: 2.402 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.5052, allocations: 10.16 kB / 0.5505 GB, free: 2.402 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002099/0.5073, allocations: 299.9 kB / 0.5508 GB, free: 2.285 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004854/0.5078, allocations: 422.9 kB / 0.5512 GB, free: 1.914 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.526e-05/0.5078, allocations: 30.28 kB / 0.5512 GB, free: 1.902 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.248e-05/0.5079, allocations: 38 kB / 0.5513 GB, free: 1.891 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001506/0.5094, allocations: 0.6997 MB / 0.5519 GB, free: 1.441 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.5094, allocations: 4 kB / 0.552 GB, free: 1.438 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.67e-05/0.5095, allocations: 18.69 kB / 0.552 GB, free: 1.426 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.5095, allocations: 10.22 kB / 0.552 GB, free: 1.426 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001508/0.511, allocations: 0.6243 MB / 0.5526 GB, free: 1.137 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.003399/0.5144, allocations: 2.997 MB / 0.5555 GB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0015/0.5159, allocations: 0.4888 MB / 0.556 GB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004135/0.5164, allocations: 188.8 kB / 0.5562 GB, free: 13.53 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08942/0.6058, allocations: 44.72 MB / 0.5998 GB, free: 11.21 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.63e-05/0.6059, allocations: 38.5 kB / 0.5999 GB, free: 11.16 MB / 446.1 MB Notification: Performance of pre-optimization done (n=30): time 2.735e-06/0.6059, allocations: 0 / 0.5999 GB, free: 11.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=30): time 0.003649/0.6096, allocations: 1.003 MB / 0.6009 GB, free: 10.13 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.567e-05/0.6096, allocations: 106.8 kB / 0.601 GB, free: 10 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000605/0.6103, allocations: 421.9 kB / 0.6014 GB, free: 9.578 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.094e-05/0.6103, allocations: 29.7 kB / 0.6014 GB, free: 9.543 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002191/0.6106, allocations: 244 kB / 0.6016 GB, free: 9.301 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001203/0.6107, allocations: 100.6 kB / 0.6017 GB, free: 9.203 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.205e-05/0.6108, allocations: 33.7 kB / 0.6018 GB, free: 9.164 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.6109, allocations: 358.8 kB / 0.6021 GB, free: 8.805 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003978/0.6113, allocations: 147.9 kB / 0.6022 GB, free: 8.66 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004964/0.6119, allocations: 277.9 kB / 0.6025 GB, free: 8.34 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008585/0.6127, allocations: 424.5 kB / 0.6029 GB, free: 7.879 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.6127, allocations: 3.938 kB / 0.6029 GB, free: 7.875 MB / 446.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001211/0.614, allocations: 0.513 MB / 0.6034 GB, free: 7.352 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001348/0.6141, allocations: 189.4 kB / 0.6036 GB, free: 7.117 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/0.6141, allocations: 4 kB / 0.6036 GB, free: 7.113 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003572/0.6177, allocations: 373.4 kB / 0.6039 GB, free: 6.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003743/0.6181, allocations: 95.88 kB / 0.604 GB, free: 6.656 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000574/0.6187, allocations: 0.607 MB / 0.6046 GB, free: 6.023 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004865/0.6192, allocations: 79.47 kB / 0.6047 GB, free: 5.945 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.295e-05/0.6192, allocations: 16 kB / 0.6047 GB, free: 5.93 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.6193, allocations: 4 kB / 0.6047 GB, free: 5.926 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009808/0.6202, allocations: 411.8 kB / 0.6051 GB, free: 5.523 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.136e-06/0.6203, allocations: 4 kB / 0.6051 GB, free: 5.52 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.275e-06/0.6203, allocations: 8 kB / 0.6051 GB, free: 5.512 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000391/0.6207, allocations: 107.8 kB / 0.6052 GB, free: 5.406 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.938e-06/0.6207, allocations: 7.984 kB / 0.6052 GB, free: 5.398 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000395/0.6211, allocations: 63.66 kB / 0.6053 GB, free: 5.336 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.654e-05/0.6211, allocations: 20 kB / 0.6053 GB, free: 5.316 MB / 446.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002705/0.6214, allocations: 249 kB / 0.6056 GB, free: 5.062 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001098/0.6215, allocations: 47.44 kB / 0.6056 GB, free: 5.016 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002751/0.6243, allocations: 2.039 MB / 0.6076 GB, free: 2.973 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.172e-05/0.6243, allocations: 27.95 kB / 0.6076 GB, free: 2.945 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.266e-06/0.6244, allocations: 4 kB / 0.6076 GB, free: 2.941 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.6244, allocations: 3.938 kB / 0.6076 GB, free: 2.938 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001193/0.6256, allocations: 1.027 MB / 0.6086 GB, free: 1.871 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.174e-06/0.6256, allocations: 3.938 kB / 0.6086 GB, free: 1.867 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002974/0.6259, allocations: 71.89 kB / 0.6087 GB, free: 1.797 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001527/0.6274, allocations: 0.6269 MB / 0.6093 GB, free: 1.164 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.326e-05/0.6275, allocations: 12 kB / 0.6093 GB, free: 1.152 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008478/0.6283, allocations: 1.022 MB / 0.6103 GB, free: 108 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.6283, allocations: 0 / 0.6103 GB, free: 108 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001745/0.6301, allocations: 1.339 MB / 0.6116 GB, free: 14.74 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003422/0.6304, allocations: 263.3 kB / 0.6119 GB, free: 14.46 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.702e-05/0.6305, allocations: 8 kB / 0.6119 GB, free: 14.46 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003449/0.6309, allocations: 39.97 kB / 0.6119 GB, free: 14.42 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.389e-05/0.631, allocations: 35.88 kB / 0.612 GB, free: 14.38 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.773e-05/0.631, allocations: 15.94 kB / 0.612 GB, free: 14.37 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0004566/0.6315, allocations: 406.8 kB / 0.6124 GB, free: 13.97 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6315, allocations: 0 / 0.6124 GB, free: 13.97 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003546/0.6351, allocations: 1.155 MB / 0.6135 GB, free: 12.81 MB / 462.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00593/0.641, allocations: 1.221 MB / 0.6147 GB, free: 11.68 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001825/0.6428, allocations: 0.8229 MB / 0.6155 GB, free: 10.86 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.6429, allocations: 0 / 0.6155 GB, free: 10.86 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007406/0.6436, allocations: 0.4938 MB / 0.616 GB, free: 10.37 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001617/0.6452, allocations: 272 kB / 0.6162 GB, free: 10.11 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002844/0.6481, allocations: 2.037 MB / 0.6182 GB, free: 8.039 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005657/0.6487, allocations: 0.9837 MB / 0.6192 GB, free: 7.031 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001327/0.6488, allocations: 47.44 kB / 0.6192 GB, free: 6.984 MB / 462.1 MB Notification: Performance of SimCode: time 4.51e-07/0.6488, allocations: 0 / 0.6192 GB, free: 6.984 MB / 462.1 MB Notification: Performance of Templates: time 0.0442/0.693, allocations: 28.88 MB / 0.6474 GB, free: 10.12 MB / 494.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Sensors/TestFlowRate/TestFlowRate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches