Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.NRXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nRXFERGATE.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER") translateModel(Modelica.Electrical.Digital.Examples.NRXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nRXFERGATE.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001545/0.001545, allocations: 109.7 kB / 17.16 MB, free: 6.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001961/0.001961, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.947/1.947, allocations: 222.9 MB / 241.7 MB, free: 15.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 47.58 kB / 300.6 MB, free: 6.211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1592/0.1606, allocations: 49.45 MB / 350.1 MB, free: 4.754 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NRXFER): time 0.004801/0.1654, allocations: 1.556 MB / 351.6 MB, free: 3.184 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003049/0.1685, allocations: 0.8771 MB / 352.5 MB, free: 2.301 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001266/0.1687, allocations: 0 / 352.5 MB, free: 2.301 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001585/0.1689, allocations: 4 kB / 352.5 MB, free: 2.297 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001562/0.1691, allocations: 19.84 kB / 352.5 MB, free: 2.277 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004128/0.1696, allocations: 35.97 kB / 352.5 MB, free: 2.242 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003268/0.1699, allocations: 115.7 kB / 352.7 MB, free: 2.129 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001735/0.1701, allocations: 20.23 kB / 352.7 MB, free: 2.105 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001218/0.1713, allocations: 0.5576 MB / 353.2 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001911/0.1715, allocations: 59.77 kB / 353.3 MB, free: 1.488 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.594e-05/0.1716, allocations: 7.938 kB / 353.3 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.982e-05/0.1717, allocations: 8 kB / 353.3 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001984/0.1719, allocations: 59.77 kB / 353.4 MB, free: 1.414 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002703/0.1722, allocations: 119.1 kB / 353.5 MB, free: 1.297 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005428/0.1727, allocations: 299.4 kB / 353.8 MB, free: 1.004 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.686e-06/0.1728, allocations: 7.938 kB / 353.8 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1728, allocations: 0 / 353.8 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.493e-05/0.1728, allocations: 0 / 353.8 MB, free: 0.9961 MB / 286.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.001668/0.1745, allocations: 0.7113 MB / 354.5 MB, free: 216 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.203e-05/0.1746, allocations: 12.03 kB / 354.5 MB, free: 204 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001694/0.1748, allocations: 40.47 kB / 354.5 MB, free: 164 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005454/0.1753, allocations: 282.3 kB / 354.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.398e-05/0.1754, allocations: 8.312 kB / 354.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.651e-05/0.1754, allocations: 12.38 kB / 354.8 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000511/0.176, allocations: 133.9 kB / 355 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/0.176, allocations: 3.984 kB / 355 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.091e-05/0.176, allocations: 4 kB / 355 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.1761, allocations: 0 / 355 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002468/0.1763, allocations: 63.95 kB / 355 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00112/0.1775, allocations: 456.5 kB / 355.5 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003/0.1778, allocations: 98.55 kB / 355.6 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002361/0.178, allocations: 84.88 kB / 355.7 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.433e-05/0.1781, allocations: 0 / 355.7 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004955/0.1786, allocations: 209.6 kB / 355.9 MB, free: 14.7 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 2.044e-06/0.1786, allocations: 0 / 355.9 MB, free: 14.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.001325/0.1799, allocations: 475.9 kB / 356.3 MB, free: 14.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001405/0.1801, allocations: 174.2 kB / 356.5 MB, free: 14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001133/0.1812, allocations: 0.5091 MB / 357 MB, free: 13.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.764e-05/0.1813, allocations: 29.7 kB / 357 MB, free: 13.45 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.1814, allocations: 109 kB / 357.2 MB, free: 13.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.125e-05/0.1815, allocations: 27.64 kB / 357.2 MB, free: 13.31 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002179/0.1817, allocations: 89.41 kB / 357.3 MB, free: 13.22 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.1819, allocations: 318.8 kB / 357.6 MB, free: 12.9 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002342/0.1822, allocations: 55.97 kB / 357.6 MB, free: 12.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002574/0.1824, allocations: 81.67 kB / 357.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005517/0.183, allocations: 347.4 kB / 358.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.183, allocations: 0 / 358.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0009268/0.1839, allocations: 384.3 kB / 358.4 MB, free: 11.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001448/0.1841, allocations: 125.8 kB / 358.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.1841, allocations: 80 / 358.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.508e-05/0.1842, allocations: 4 kB / 358.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.434e-05/0.1842, allocations: 4.031 kB / 358.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.38e-05/0.1842, allocations: 7.922 kB / 358.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002514/0.1845, allocations: 19.89 kB / 358.6 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001088/0.1846, allocations: 59.94 kB / 358.6 MB, free: 11.72 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.nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.t_next,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.x,$PRE.nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.yy,nRXFERGATE.nextstate,x_table.y,e_table.y,$whenCondition2,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005685/0.1852, allocations: 358.7 kB / 359 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.891e-05/0.1853, allocations: 35.86 kB / 359 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001822/0.1855, allocations: 67.03 kB / 359.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.664e-06/0.1855, allocations: 4 kB / 359.1 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.1855, allocations: 11.98 kB / 359.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.1855, allocations: 0 / 359.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001672/0.1872, allocations: 0.8204 MB / 359.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.1872, allocations: 0 / 359.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.465e-06/0.1873, allocations: 0 / 359.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.1873, allocations: 4 kB / 359.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.2e-05/0.1873, allocations: 8 kB / 359.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.1873, allocations: 0 / 359.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/0.1874, allocations: 7.938 kB / 360 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001179/0.1885, allocations: 0.5485 MB / 360.5 MB, free: 9.703 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000537/0.1891, allocations: 244.4 kB / 360.7 MB, free: 9.445 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001055/0.1892, allocations: 8 kB / 360.7 MB, free: 9.438 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000264/0.1895, allocations: 15.98 kB / 360.8 MB, free: 9.422 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001785/0.1897, allocations: 23.91 kB / 360.8 MB, free: 9.398 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001113/0.1898, allocations: 60 kB / 360.8 MB, free: 9.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008538/0.1907, allocations: 386.9 kB / 361.2 MB, free: 8.961 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1907, allocations: 0 / 361.2 MB, free: 8.961 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005661/0.1913, allocations: 51.94 kB / 361.3 MB, free: 8.91 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,nRXFERGATE.nextstate,nRXFERGATE.yy,nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nRXFERGATE.yy,nRXFERGATE.nextstate,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.t_next,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nRXFERGATE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002541/0.1915, allocations: 121.7 kB / 361.4 MB, free: 8.785 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001033/0.1926, allocations: 433.5 kB / 361.8 MB, free: 8.312 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.1926, allocations: 4 kB / 361.8 MB, free: 8.309 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005569/0.1932, allocations: 377.8 kB / 362.2 MB, free: 7.891 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.1942, allocations: 105.6 kB / 362.3 MB, free: 7.785 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002242/0.1965, allocations: 0.8094 MB / 363.1 MB, free: 6.945 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006963/0.1972, allocations: 0.7986 MB / 363.9 MB, free: 6.121 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.824e-05/0.1973, allocations: 11.44 kB / 363.9 MB, free: 6.109 MB / 302.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1973, allocations: 0 / 363.9 MB, free: 6.109 MB / 302.1 MB Notification: Performance of Templates: time 0.007813/0.2051, allocations: 2.669 MB / 366.6 MB, free: 3.395 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/NRXFER/NRXFER.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches