Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.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.Fittings.TestSharpEdgedOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|orifice1.port_b.m_flow|orifice1.port_b.p|orifice1.port_b.h_outflow|orifice2.port_b.m_flow|orifice2.port_b.p|orifice2.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|orifice1.port_b.m_flow|orifice1.port_b.p|orifice1.port_b.h_outflow|orifice2.port_b.m_flow|orifice2.port_b.p|orifice2.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009724/0.0009725, allocations: 97.81 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001012/0.001012, allocations: 202.6 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 227.2 MB / 245.9 MB, free: 12.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2262/0.2262, allocations: 45.92 MB / 344 MB, free: 12.37 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002607/0.0002607, allocations: 4 kB / 417.9 MB, free: 20.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1427/0.143, allocations: 63.46 MB / 481.4 MB, free: 5.461 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice): time 0.4681/0.6112, allocations: 143.2 MB / 0.6099 GB, free: 6.309 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.006891/0.6181, allocations: 4.399 MB / 0.6142 GB, free: 1.902 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005771/0.6187, allocations: 19.81 kB / 0.6142 GB, free: 1.883 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009166/0.6197, allocations: 266.7 kB / 0.6145 GB, free: 1.621 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003986/0.6237, allocations: 1.204 MB / 0.6157 GB, free: 428 kB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002563/0.6262, allocations: 0.7524 MB / 0.6164 GB, free: 15.68 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002085/0.6283, allocations: 0.9652 MB / 0.6174 GB, free: 14.71 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005914/0.6289, allocations: 357.1 kB / 0.6177 GB, free: 14.36 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009192/0.6299, allocations: 0.5101 MB / 0.6182 GB, free: 13.84 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005243/0.6304, allocations: 350.6 kB / 0.6185 GB, free: 13.5 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 6.544e-05/0.6305, allocations: 27.94 kB / 0.6186 GB, free: 13.47 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002663/0.6331, allocations: 1.143 MB / 0.6197 GB, free: 12.33 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001609/0.6333, allocations: 135.5 kB / 0.6198 GB, free: 12.2 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001637/0.6335, allocations: 157.3 kB / 0.6199 GB, free: 12.04 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001534/0.635, allocations: 1.079 MB / 0.621 GB, free: 10.96 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.635, allocations: 4 kB / 0.621 GB, free: 10.96 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.6351, allocations: 3.938 kB / 0.621 GB, free: 10.95 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.157e-05/0.6351, allocations: 0 / 0.621 GB, free: 10.95 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.00203/0.6371, allocations: 1.034 MB / 0.622 GB, free: 9.859 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.6372, allocations: 8.031 kB / 0.622 GB, free: 9.852 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00115/0.6383, allocations: 159.1 kB / 0.6222 GB, free: 9.695 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001046/0.6394, allocations: 0.5522 MB / 0.6227 GB, free: 9.102 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.777e-05/0.6394, allocations: 33 kB / 0.6227 GB, free: 9.07 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.35e-05/0.6395, allocations: 44 kB / 0.6228 GB, free: 9.027 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009824/0.6405, allocations: 0.5867 MB / 0.6234 GB, free: 8.402 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/0.6405, allocations: 7.938 kB / 0.6234 GB, free: 8.395 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.112e-05/0.6406, allocations: 24 kB / 0.6234 GB, free: 8.371 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.711e-05/0.6406, allocations: 13.94 kB / 0.6234 GB, free: 8.359 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007629/0.6414, allocations: 459.6 kB / 0.6238 GB, free: 7.91 MB / 462.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.003534/0.645, allocations: 2.642 MB / 0.6264 GB, free: 5.09 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004947/0.6455, allocations: 279.7 kB / 0.6267 GB, free: 4.809 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003897/0.6459, allocations: 348.4 kB / 0.627 GB, free: 4.395 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005578/0.6464, allocations: 346.8 kB / 0.6274 GB, free: 4.02 MB / 462.1 MB Notification: Performance of pre-optimization done (n=35): time 2.034e-06/0.6464, allocations: 0 / 0.6274 GB, free: 4.02 MB / 462.1 MB Notification: Performance of matching and sorting (n=35): time 0.001227/0.6477, allocations: 0.6945 MB / 0.628 GB, free: 3.293 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001662/0.6479, allocations: 298.6 kB / 0.6283 GB, free: 2.934 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007239/0.6486, allocations: 0.5665 MB / 0.6289 GB, free: 2.355 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.422e-05/0.6486, allocations: 33.7 kB / 0.6289 GB, free: 2.316 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003098/0.649, allocations: 331.5 kB / 0.6292 GB, free: 1.988 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.6491, allocations: 114.4 kB / 0.6293 GB, free: 1.875 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.288e-05/0.6491, allocations: 12 kB / 0.6293 GB, free: 1.863 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.6493, allocations: 366.8 kB / 0.6297 GB, free: 1.496 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002514/0.6495, allocations: 157 kB / 0.6298 GB, free: 1.344 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004197/0.6499, allocations: 390.6 kB / 0.6302 GB, free: 0.8594 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003548/0.6503, allocations: 230.3 kB / 0.6304 GB, free: 0.6289 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.6503, allocations: 4 kB / 0.6304 GB, free: 0.625 MB / 462.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001041/0.6514, allocations: 0.6502 MB / 0.6311 GB, free: 15.96 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009115/0.6523, allocations: 2.21 MB / 0.6332 GB, free: 13.57 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.011e-05/0.6523, allocations: 11.94 kB / 0.6332 GB, free: 13.56 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.456e-05/0.6524, allocations: 8 kB / 0.6332 GB, free: 13.55 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003385/0.6557, allocations: 399.5 kB / 0.6336 GB, free: 13.16 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005847/0.6564, allocations: 0.6211 MB / 0.6342 GB, free: 12.52 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006655/0.657, allocations: 79.36 kB / 0.6343 GB, free: 12.44 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.566e-05/0.6571, allocations: 51.98 kB / 0.6344 GB, free: 12.39 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.6572, allocations: 4 kB / 0.6344 GB, free: 12.38 MB / 478.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008855/0.658, allocations: 0.5525 MB / 0.6349 GB, free: 11.82 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.6581, allocations: 4 kB / 0.6349 GB, free: 11.82 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.6581, allocations: 15.95 kB / 0.6349 GB, free: 11.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004106/0.6585, allocations: 127.8 kB / 0.635 GB, free: 11.68 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/0.6585, allocations: 12.81 kB / 0.6351 GB, free: 11.67 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003901/0.6589, allocations: 63.86 kB / 0.6351 GB, free: 11.61 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.516e-05/0.659, allocations: 51.98 kB / 0.6352 GB, free: 11.56 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003946/0.6594, allocations: 315.7 kB / 0.6355 GB, free: 11.24 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.6595, allocations: 63.25 kB / 0.6355 GB, free: 11.18 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002169/0.6617, allocations: 1.221 MB / 0.6367 GB, free: 9.953 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.6617, allocations: 4 kB / 0.6367 GB, free: 9.949 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.6617, allocations: 0 / 0.6367 GB, free: 9.949 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.6617, allocations: 0 / 0.6367 GB, free: 9.949 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002486/0.6642, allocations: 2.281 MB / 0.639 GB, free: 7.348 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.6642, allocations: 4 kB / 0.639 GB, free: 7.344 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001189/0.6654, allocations: 188.1 kB / 0.6391 GB, free: 7.16 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.538e-06/0.6655, allocations: 4 kB / 0.6391 GB, free: 7.156 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.903e-05/0.6655, allocations: 27.98 kB / 0.6392 GB, free: 7.129 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004234/0.6659, allocations: 0.6055 MB / 0.6398 GB, free: 6.5 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.666, allocations: 7.938 kB / 0.6398 GB, free: 6.492 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001043/0.667, allocations: 0.8331 MB / 0.6406 GB, free: 5.535 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001835/0.6672, allocations: 152.3 kB / 0.6407 GB, free: 5.367 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000118/0.6673, allocations: 12 kB / 0.6407 GB, free: 5.355 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003666/0.6677, allocations: 35.83 kB / 0.6408 GB, free: 5.32 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.932e-05/0.6678, allocations: 47.84 kB / 0.6408 GB, free: 5.273 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.615e-05/0.6679, allocations: 31.98 kB / 0.6408 GB, free: 5.242 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004725/0.6683, allocations: 415.1 kB / 0.6412 GB, free: 4.844 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6683, allocations: 0 / 0.6412 GB, free: 4.844 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001338/0.6697, allocations: 479.5 kB / 0.6417 GB, free: 4.375 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,p_table.b,p_table.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000979/0.6707, allocations: 478.5 kB / 0.6422 GB, free: 3.906 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005638/0.6763, allocations: 1.214 MB / 0.6433 GB, free: 2.668 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.421e-06/0.6763, allocations: 0 / 0.6433 GB, free: 2.668 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001646/0.678, allocations: 441.1 kB / 0.6438 GB, free: 2.227 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001565/0.6796, allocations: 309 kB / 0.6441 GB, free: 1.926 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001694/0.6813, allocations: 1.284 MB / 0.6453 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004594/0.6818, allocations: 0.9072 MB / 0.6462 GB, free: 15.64 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002012/0.6838, allocations: 1.014 MB / 0.6472 GB, free: 14.64 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003538/0.6842, allocations: 119.3 kB / 0.6473 GB, free: 14.52 MB / 494.1 MB Notification: Performance of SimCode: time 6.92e-07/0.6842, allocations: 3.938 kB / 0.6473 GB, free: 14.52 MB / 494.1 MB Notification: Performance of Templates: time 0.02768/0.7119, allocations: 15.99 MB / 0.6629 GB, free: 14.62 MB / 0.4981 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Fittings/TestSharpEdgedOrifice/TestSharpEdgedOrifice.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches