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.0007473/0.0007474, allocations: 91.8 kB / 17.31 MB, free: 6.535 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.0007847/0.0007847, allocations: 175.3 kB / 18.21 MB, free: 5.68 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.291/1.291, allocations: 223.3 MB / 242.3 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002261/0.0002261, allocations: 11.94 kB / 302.1 MB, free: 5.91 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07405/0.07429, allocations: 50.42 MB / 352.5 MB, free: 3.484 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NRXFER): time 0.001391/0.07571, allocations: 1.212 MB / 353.7 MB, free: 2.262 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00159/0.07733, allocations: 0.8702 MB / 354.6 MB, free: 1.387 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.896e-05/0.07738, allocations: 3.938 kB / 354.6 MB, free: 1.383 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.691e-05/0.07746, allocations: 7.922 kB / 354.6 MB, free: 1.375 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.723e-05/0.07753, allocations: 11.92 kB / 354.6 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002106/0.07775, allocations: 43.91 kB / 354.6 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001284/0.07789, allocations: 111.7 kB / 354.8 MB, free: 1.211 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.882e-05/0.07798, allocations: 16.22 kB / 354.8 MB, free: 1.191 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005351/0.07853, allocations: 0.5615 MB / 355.3 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001038/0.07864, allocations: 63.7 kB / 355.4 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.271e-05/0.07868, allocations: 4 kB / 355.4 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.494e-05/0.07871, allocations: 4 kB / 355.4 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.719e-05/0.07879, allocations: 55.77 kB / 355.5 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001176/0.07892, allocations: 140.8 kB / 355.6 MB, free: 368 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002351/0.07916, allocations: 299.3 kB / 355.9 MB, free: 68 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.07917, allocations: 0 / 355.9 MB, free: 68 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.07918, allocations: 0 / 355.9 MB, free: 68 kB / 286.1 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.07919, allocations: 0 / 355.9 MB, free: 68 kB / 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.0005825/0.07977, allocations: 0.657 MB / 356.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.07982, allocations: 8.031 kB / 356.5 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.838e-05/0.07989, allocations: 44.47 kB / 356.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002403/0.08014, allocations: 270.3 kB / 356.9 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.894e-05/0.08017, allocations: 8.375 kB / 356.9 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.234e-05/0.0802, allocations: 12.38 kB / 356.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002881/0.0805, allocations: 141.8 kB / 357 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-06/0.08052, allocations: 3.938 kB / 357 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.468e-05/0.08055, allocations: 4 kB / 357 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-06/0.08055, allocations: 0 / 357 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001475/0.08071, allocations: 59.97 kB / 357.1 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005771/0.08129, allocations: 456.6 kB / 357.5 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001827/0.08149, allocations: 102.5 kB / 357.6 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001599/0.08166, allocations: 80.89 kB / 357.7 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.046e-06/0.08168, allocations: 4 kB / 357.7 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003026/0.08199, allocations: 202.7 kB / 357.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.713e-06/0.082, allocations: 0 / 357.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007591/0.08276, allocations: 481.6 kB / 358.4 MB, free: 13.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.589e-05/0.08285, allocations: 166.2 kB / 358.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006045/0.08346, allocations: 0.513 MB / 359.1 MB, free: 12.62 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.072e-05/0.0835, allocations: 29.7 kB / 359.1 MB, free: 12.58 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.545e-05/0.08357, allocations: 109 kB / 359.2 MB, free: 12.47 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.033e-05/0.08361, allocations: 31.62 kB / 359.2 MB, free: 12.44 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.669e-05/0.08366, allocations: 21.72 kB / 359.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.109e-05/0.08376, allocations: 326.8 kB / 359.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001312/0.0839, allocations: 55.97 kB / 359.6 MB, free: 12.03 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001378/0.08405, allocations: 88.64 kB / 359.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003146/0.08437, allocations: 350.7 kB / 360 MB, free: 11.55 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.08438, allocations: 0 / 360 MB, free: 11.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005224/0.08491, allocations: 384.3 kB / 360.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.577e-05/0.085, allocations: 126.8 kB / 360.5 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.08501, allocations: 0 / 360.5 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.08502, allocations: 4 kB / 360.5 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.705e-05/0.08505, allocations: 0 / 360.5 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/0.08505, allocations: 0 / 360.5 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001493/0.08521, allocations: 12 kB / 360.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.679e-05/0.08528, allocations: 67.94 kB / 360.6 MB, free: 10.91 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.0003149/0.08561, allocations: 362.7 kB / 361 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.045e-05/0.08567, allocations: 43.53 kB / 361 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.549e-05/0.08577, allocations: 59.16 kB / 361.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.08578, allocations: 4 kB / 361.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.08579, allocations: 112 / 361.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.0858, allocations: 7.875 kB / 361.1 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008998/0.0867, allocations: 0.8136 MB / 361.9 MB, free: 9.508 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.08672, allocations: 8 kB / 361.9 MB, free: 9.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.318e-06/0.08673, allocations: 0 / 361.9 MB, free: 9.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.08674, allocations: 0 / 361.9 MB, free: 9.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.738e-05/0.08677, allocations: 15.98 kB / 361.9 MB, free: 9.484 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.08678, allocations: 3.984 kB / 361.9 MB, free: 9.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.08678, allocations: 3.938 kB / 361.9 MB, free: 9.477 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006184/0.08741, allocations: 0.5445 MB / 362.5 MB, free: 8.891 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002834/0.0877, allocations: 236.5 kB / 362.7 MB, free: 8.641 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.783e-05/0.08777, allocations: 16 kB / 362.7 MB, free: 8.625 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001463/0.08792, allocations: 11.98 kB / 362.7 MB, free: 8.613 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.327e-05/0.08802, allocations: 35.89 kB / 362.8 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.681e-05/0.08809, allocations: 52 kB / 362.8 MB, free: 8.527 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004493/0.08854, allocations: 386.9 kB / 363.2 MB, free: 8.148 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.08855, allocations: 0 / 363.2 MB, free: 8.148 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002999/0.08886, allocations: 51.84 kB / 363.3 MB, free: 8.098 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.0001166/0.08898, allocations: 125.8 kB / 363.4 MB, free: 7.969 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004807/0.08947, allocations: 437.5 kB / 363.8 MB, free: 7.492 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.08948, allocations: 0 / 363.8 MB, free: 7.492 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003088/0.0898, allocations: 373.6 kB / 364.2 MB, free: 7.078 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000615/0.09042, allocations: 101.5 kB / 364.3 MB, free: 6.977 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001056/0.09149, allocations: 0.7991 MB / 365.1 MB, free: 6.145 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003683/0.09187, allocations: 0.8064 MB / 365.9 MB, free: 5.312 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.975e-05/0.0919, allocations: 19.38 kB / 365.9 MB, free: 5.293 MB / 302.1 MB Notification: Performance of SimCode: time 3.8e-07/0.0919, allocations: 3.938 kB / 365.9 MB, free: 5.289 MB / 302.1 MB Notification: Performance of Templates: time 0.00408/0.09599, allocations: 2.657 MB / 368.5 MB, free: 2.582 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