Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.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) 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(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER") translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001006/0.001006, allocations: 96.84 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009733/0.0009734, allocations: 208.4 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003405/0.0003405, allocations: 8 kB / 306.6 MB, free: 1.434 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1562/0.1566, allocations: 51.49 MB / 358.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002241/0.1589, allocations: 1.194 MB / 359.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0028/0.1617, allocations: 0.8504 MB / 360.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.956e-05/0.1618, allocations: 4 kB / 360.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.393e-05/0.1619, allocations: 7.938 kB / 360.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000117/0.162, allocations: 19.91 kB / 360.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003248/0.1624, allocations: 35.89 kB / 360.2 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001493/0.1625, allocations: 67.8 kB / 360.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001269/0.1627, allocations: 20.22 kB / 360.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006486/0.1633, allocations: 423.3 kB / 360.7 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001655/0.1635, allocations: 71.81 kB / 360.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.921e-05/0.1636, allocations: 8 kB / 360.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.228e-05/0.1636, allocations: 4 kB / 360.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001144/0.1637, allocations: 63.77 kB / 360.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001085/0.1639, allocations: 73.52 kB / 360.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004554/0.1643, allocations: 287.3 kB / 361.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.1643, allocations: 0 / 361.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.1644, allocations: 0 / 361.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.812e-06/0.1644, allocations: 0 / 361.2 MB, free: 10.8 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008941/0.1653, allocations: 0.6608 MB / 361.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.1653, allocations: 11.97 kB / 361.8 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001089/0.1654, allocations: 47.52 kB / 361.9 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003983/0.1659, allocations: 253.4 kB / 362.1 MB, free: 9.723 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.649e-05/0.1659, allocations: 11.95 kB / 362.1 MB, free: 9.711 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.109e-05/0.1659, allocations: 8 kB / 362.2 MB, free: 9.703 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000479/0.1664, allocations: 133.6 kB / 362.3 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.1665, allocations: 0 / 362.3 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.388e-05/0.1665, allocations: 4 kB / 362.3 MB, free: 9.562 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.1665, allocations: 0 / 362.3 MB, free: 9.562 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000201/0.1667, allocations: 59.91 kB / 362.3 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009277/0.1677, allocations: 460.6 kB / 362.8 MB, free: 9.004 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002496/0.1679, allocations: 98.48 kB / 362.9 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.879e-06/0.168, allocations: 3.938 kB / 362.9 MB, free: 8.895 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004171/0.1684, allocations: 206.8 kB / 363.1 MB, free: 8.668 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.673e-06/0.1684, allocations: 0 / 363.1 MB, free: 8.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.001187/0.1696, allocations: 0.6346 MB / 363.7 MB, free: 7.969 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001165/0.1697, allocations: 170.2 kB / 363.9 MB, free: 7.766 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008925/0.1706, allocations: 0.509 MB / 364.4 MB, free: 7.25 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.387e-05/0.1707, allocations: 29.7 kB / 364.4 MB, free: 7.215 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.595e-05/0.1708, allocations: 105 kB / 364.5 MB, free: 7.109 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.412e-05/0.1708, allocations: 27.66 kB / 364.6 MB, free: 7.082 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.337e-05/0.1709, allocations: 4 kB / 364.6 MB, free: 7.078 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.171, allocations: 330.8 kB / 364.9 MB, free: 6.746 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001584/0.1712, allocations: 59.97 kB / 364.9 MB, free: 6.688 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001898/0.1714, allocations: 69.67 kB / 365 MB, free: 6.613 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002238/0.1716, allocations: 162.8 kB / 365.2 MB, free: 6.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.1716, allocations: 4 kB / 365.2 MB, free: 6.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006749/0.1723, allocations: 380.4 kB / 365.6 MB, free: 6.023 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.662e-05/0.1724, allocations: 130.8 kB / 365.7 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.1725, allocations: 11.97 kB / 365.7 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.1725, allocations: 0 / 365.7 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.695e-05/0.1725, allocations: 0 / 365.7 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.1725, allocations: 4 kB / 365.7 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002143/0.1728, allocations: 11.98 kB / 365.7 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.846e-05/0.1729, allocations: 55.94 kB / 365.8 MB, free: 5.789 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.nXFERGATE.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,$PRE.nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000424/0.1733, allocations: 370.7 kB / 366.1 MB, free: 5.395 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.852e-05/0.1734, allocations: 39.53 kB / 366.2 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001435/0.1735, allocations: 67.16 kB / 366.2 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.1735, allocations: 0 / 366.2 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.1736, allocations: 0 / 366.2 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.1736, allocations: 7.984 kB / 366.2 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001308/0.1749, allocations: 0.8135 MB / 367 MB, free: 4.379 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.1749, allocations: 3.984 kB / 367.1 MB, free: 4.375 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.659e-06/0.1749, allocations: 0 / 367.1 MB, free: 4.375 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.1749, allocations: 0 / 367.1 MB, free: 4.375 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.561e-05/0.175, allocations: 15.94 kB / 367.1 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/0.175, allocations: 4.094 kB / 367.1 MB, free: 4.355 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.175, allocations: 7.938 kB / 367.1 MB, free: 4.348 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008443/0.1759, allocations: 0.5406 MB / 367.6 MB, free: 3.766 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004344/0.1763, allocations: 240.5 kB / 367.9 MB, free: 3.512 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.395e-05/0.1764, allocations: 8 kB / 367.9 MB, free: 3.504 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002091/0.1766, allocations: 15.98 kB / 367.9 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001573/0.1768, allocations: 23.97 kB / 367.9 MB, free: 3.465 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.5e-05/0.1769, allocations: 64.11 kB / 368 MB, free: 3.402 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007118/0.1776, allocations: 386.9 kB / 368.3 MB, free: 3.027 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1776, allocations: 0 / 368.3 MB, free: 3.027 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004711/0.1781, allocations: 47.91 kB / 368.4 MB, free: 2.98 MB / 302.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: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nXFERGATE.yy,nXFERGATE.nextstate,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nXFERGATE.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002648/0.1784, allocations: 122.9 kB / 368.5 MB, free: 2.852 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008392/0.1792, allocations: 441.3 kB / 368.9 MB, free: 2.375 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/0.1792, allocations: 0 / 368.9 MB, free: 2.375 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005643/0.1798, allocations: 385.6 kB / 369.3 MB, free: 1.949 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007842/0.1806, allocations: 98.8 kB / 369.4 MB, free: 1.859 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001644/0.1823, allocations: 0.731 MB / 370.1 MB, free: 1.102 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005819/0.1829, allocations: 0.8102 MB / 371 MB, free: 272 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.074e-05/0.1829, allocations: 8.656 kB / 371 MB, free: 264 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.404e-05/0.183, allocations: 11.44 kB / 371 MB, free: 252 kB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.183, allocations: 0 / 371 MB, free: 252 kB / 302.1 MB Notification: Performance of Templates: time 0.2187/0.4017, allocations: 4.05 MB / 375 MB, free: 19.14 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches