Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER") translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009415/0.000942, allocations: 86.3 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002528/0.000253, allocations: 7.938 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2609/0.2612, allocations: 50.41 MB / 401.5 MB, free: 32.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1088/0.3701, allocations: 82.25 MB / 483.7 MB, free: 14.24 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/0.3704, allocations: 71.95 kB / 483.8 MB, free: 14.17 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03132/0.4017, allocations: 16.63 MB / 0.4887 GB, free: 13.62 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.4018, allocations: 4 kB / 0.4887 GB, free: 13.61 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.018e-05/0.4018, allocations: 4 kB / 0.4887 GB, free: 13.61 MB / 378.7 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.0006767/0.4025, allocations: 0.6682 MB / 0.4894 GB, free: 12.87 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.4025, allocations: 11.97 kB / 0.4894 GB, free: 12.86 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.776e-05/0.4026, allocations: 39.62 kB / 0.4894 GB, free: 12.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003059/0.4029, allocations: 257.4 kB / 0.4897 GB, free: 12.53 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.182e-05/0.403, allocations: 8 kB / 0.4897 GB, free: 12.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.945e-05/0.403, allocations: 8 kB / 0.4897 GB, free: 12.51 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002729/0.4033, allocations: 129.5 kB / 0.4898 GB, free: 12.38 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.128e-06/0.4033, allocations: 4 kB / 0.4898 GB, free: 12.38 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.326e-05/0.4033, allocations: 4 kB / 0.4898 GB, free: 12.37 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.4033, allocations: 0 / 0.4898 GB, free: 12.37 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001362/0.4035, allocations: 67.95 kB / 0.4899 GB, free: 12.3 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006775/0.4042, allocations: 464.4 kB / 0.4903 GB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001776/0.4044, allocations: 98.55 kB / 0.4904 GB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.061e-05/0.4044, allocations: 4 kB / 0.4904 GB, free: 11.69 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002981/0.4047, allocations: 206.7 kB / 0.4906 GB, free: 11.46 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.382e-06/0.4047, allocations: 0 / 0.4906 GB, free: 11.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.0008251/0.4055, allocations: 0.6074 MB / 0.4912 GB, free: 10.79 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.983e-05/0.4056, allocations: 170.2 kB / 0.4914 GB, free: 10.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005445/0.4062, allocations: 464.5 kB / 0.4918 GB, free: 10.13 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.229e-05/0.4062, allocations: 33.7 kB / 0.4918 GB, free: 10.09 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.645e-05/0.4063, allocations: 105.1 kB / 0.4919 GB, free: 9.98 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.5e-05/0.4063, allocations: 19.7 kB / 0.492 GB, free: 9.961 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.776e-05/0.4064, allocations: 8 kB / 0.492 GB, free: 9.953 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.4065, allocations: 322.8 kB / 0.4923 GB, free: 9.629 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001292/0.4066, allocations: 56.08 kB / 0.4923 GB, free: 9.574 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001246/0.4068, allocations: 77.61 kB / 0.4924 GB, free: 9.492 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00016/0.4069, allocations: 170.8 kB / 0.4926 GB, free: 9.301 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.4069, allocations: 0 / 0.4926 GB, free: 9.301 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000486/0.4074, allocations: 384.1 kB / 0.4929 GB, free: 8.895 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.552e-05/0.4075, allocations: 122.8 kB / 0.4931 GB, free: 8.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.4075, allocations: 0 / 0.4931 GB, free: 8.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.4076, allocations: 7.984 kB / 0.4931 GB, free: 8.742 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.944e-05/0.4076, allocations: 0 / 0.4931 GB, free: 8.742 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.4076, allocations: 0 / 0.4931 GB, free: 8.742 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001252/0.4077, allocations: 16 kB / 0.4931 GB, free: 8.727 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.148e-05/0.4078, allocations: 63.95 kB / 0.4931 GB, free: 8.664 MB / 378.7 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.0003311/0.4082, allocations: 362.7 kB / 0.4935 GB, free: 8.277 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.849e-05/0.4082, allocations: 43.48 kB / 0.4935 GB, free: 8.234 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001011/0.4083, allocations: 63.14 kB / 0.4936 GB, free: 8.172 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.4083, allocations: 4 kB / 0.4936 GB, free: 8.168 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.4083, allocations: 0 / 0.4936 GB, free: 8.168 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.4083, allocations: 0 / 0.4936 GB, free: 8.168 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009022/0.4092, allocations: 0.8019 MB / 0.4944 GB, free: 7.285 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.4093, allocations: 7.938 kB / 0.4944 GB, free: 7.277 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.652e-06/0.4093, allocations: 4 kB / 0.4944 GB, free: 7.273 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.4093, allocations: 0 / 0.4944 GB, free: 7.273 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.916e-05/0.4093, allocations: 8 kB / 0.4944 GB, free: 7.266 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.4093, allocations: 7.938 kB / 0.4944 GB, free: 7.258 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.4093, allocations: 0 / 0.4944 GB, free: 7.258 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006036/0.4099, allocations: 0.5252 MB / 0.4949 GB, free: 6.691 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003228/0.4103, allocations: 252.3 kB / 0.4952 GB, free: 6.426 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.065e-05/0.4103, allocations: 12 kB / 0.4952 GB, free: 6.414 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001309/0.4105, allocations: 12 kB / 0.4952 GB, free: 6.402 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001396/0.4106, allocations: 27.95 kB / 0.4952 GB, free: 6.375 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.196e-05/0.4107, allocations: 59.94 kB / 0.4953 GB, free: 6.316 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000425/0.4111, allocations: 382.9 kB / 0.4956 GB, free: 5.945 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4111, allocations: 0 / 0.4956 GB, free: 5.945 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002699/0.4114, allocations: 44 kB / 0.4957 GB, free: 5.902 MB / 378.7 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.0001492/0.4116, allocations: 122.9 kB / 0.4958 GB, free: 5.773 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005119/0.4121, allocations: 437.5 kB / 0.4962 GB, free: 5.297 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.4121, allocations: 0 / 0.4962 GB, free: 5.297 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003036/0.4124, allocations: 377.6 kB / 0.4966 GB, free: 4.879 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004583/0.4129, allocations: 98.59 kB / 0.4967 GB, free: 4.781 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001084/0.414, allocations: 0.7388 MB / 0.4974 GB, free: 4.012 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003966/0.4144, allocations: 0.8024 MB / 0.4982 GB, free: 3.184 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.473e-05/0.4144, allocations: 12.66 kB / 0.4982 GB, free: 3.168 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.207e-05/0.4145, allocations: 11.44 kB / 0.4982 GB, free: 3.156 MB / 378.7 MB Notification: Performance of SimCode: time 3.81e-07/0.4145, allocations: 0 / 0.4982 GB, free: 3.156 MB / 378.7 MB Notification: Performance of Templates: time 0.2392/0.6537, allocations: 4.051 MB / 0.5021 GB, free: 100.2 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches