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.001205/0.001205, allocations: 106.7 kB / 17.28 MB, free: 6.195 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.001308/0.001308, allocations: 193.3 kB / 18.21 MB, free: 5.27 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.437/1.437, allocations: 222.9 MB / 241.9 MB, free: 13.7 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001042/0.001042, allocations: 46.38 kB / 300.8 MB, free: 5.969 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09254/0.0936, allocations: 49.45 MB / 350.2 MB, free: 4.512 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NRXFER): time 0.00257/0.09621, allocations: 1.552 MB / 351.8 MB, free: 2.945 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001614/0.09785, allocations: 0.8459 MB / 352.6 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.019e-05/0.09792, allocations: 0 / 352.6 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.036e-05/0.09804, allocations: 11.92 kB / 352.7 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.494e-05/0.09812, allocations: 15.92 kB / 352.7 MB, free: 2.066 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002351/0.09836, allocations: 39.95 kB / 352.7 MB, free: 2.027 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001769/0.09855, allocations: 143.7 kB / 352.8 MB, free: 1.887 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.724e-05/0.09865, allocations: 20.22 kB / 352.9 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005285/0.09919, allocations: 0.5576 MB / 353.4 MB, free: 1.305 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001107/0.09932, allocations: 75.69 kB / 353.5 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.58e-05/0.09936, allocations: 12 kB / 353.5 MB, free: 1.219 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.698e-05/0.09939, allocations: 12 kB / 353.5 MB, free: 1.207 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.904e-05/0.09948, allocations: 67.75 kB / 353.6 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001138/0.0996, allocations: 119.1 kB / 353.7 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000254/0.09986, allocations: 307.3 kB / 354 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.09987, allocations: 0 / 354 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.09988, allocations: 0 / 354 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.09989, allocations: 0 / 354 MB, free: 0.7227 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.0007162/0.1006, allocations: 0.7176 MB / 354.7 MB, free: 15.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.1006, allocations: 8.031 kB / 354.7 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.254e-05/0.1007, allocations: 44.47 kB / 354.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002608/0.101, allocations: 278.2 kB / 355 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.766e-05/0.101, allocations: 8.375 kB / 355.1 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.102e-05/0.1011, allocations: 16.31 kB / 355.1 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002944/0.1014, allocations: 129.9 kB / 355.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.1014, allocations: 3.984 kB / 355.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.258e-05/0.1014, allocations: 4 kB / 355.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.1014, allocations: 0 / 355.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001398/0.1016, allocations: 63.89 kB / 355.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006102/0.1022, allocations: 460.6 kB / 355.7 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000185/0.1024, allocations: 102.5 kB / 355.8 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001422/0.1026, allocations: 84.83 kB / 355.9 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.886e-06/0.1026, allocations: 0 / 355.9 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003413/0.1029, allocations: 206.7 kB / 356.1 MB, free: 14.42 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.422e-06/0.1029, allocations: 0 / 356.1 MB, free: 14.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.000769/0.1037, allocations: 474.9 kB / 356.6 MB, free: 13.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.643e-05/0.1038, allocations: 170.2 kB / 356.7 MB, free: 13.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006092/0.1044, allocations: 0.5168 MB / 357.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.95e-05/0.1045, allocations: 29.7 kB / 357.3 MB, free: 13.17 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.782e-05/0.1045, allocations: 105 kB / 357.4 MB, free: 13.06 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.904e-05/0.1046, allocations: 23.66 kB / 357.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001091/0.1047, allocations: 89.41 kB / 357.5 MB, free: 12.95 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.01e-05/0.1048, allocations: 326.8 kB / 357.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000121/0.1049, allocations: 55.97 kB / 357.9 MB, free: 12.56 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001255/0.1051, allocations: 69.69 kB / 357.9 MB, free: 12.49 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003049/0.1054, allocations: 351.4 kB / 358.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1054, allocations: 0 / 358.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005318/0.1059, allocations: 388.3 kB / 358.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.475e-05/0.106, allocations: 122.8 kB / 358.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.106, allocations: 3.938 kB / 358.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.106, allocations: 0 / 358.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.869e-05/0.1061, allocations: 0 / 358.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.702e-06/0.1061, allocations: 4 kB / 358.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001381/0.1062, allocations: 19.89 kB / 358.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.072e-05/0.1063, allocations: 55.94 kB / 358.9 MB, free: 11.45 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.0003117/0.1066, allocations: 374.9 kB / 359.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.814e-05/0.1067, allocations: 35.62 kB / 359.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.504e-05/0.1068, allocations: 71.23 kB / 359.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.1068, allocations: 3.938 kB / 359.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.1068, allocations: 0 / 359.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.1068, allocations: 0 / 359.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009155/0.1077, allocations: 0.8134 MB / 360.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.1077, allocations: 0 / 360.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.47e-06/0.1077, allocations: 3.938 kB / 360.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.1077, allocations: 0 / 360.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.177e-05/0.1078, allocations: 23.98 kB / 360.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1078, allocations: 0 / 360.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.1078, allocations: 3.938 kB / 360.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006235/0.1084, allocations: 0.5362 MB / 360.7 MB, free: 9.438 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002865/0.1087, allocations: 252.4 kB / 361 MB, free: 9.172 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.663e-05/0.1088, allocations: 12 kB / 361 MB, free: 9.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001361/0.1089, allocations: 8 kB / 361 MB, free: 9.152 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.758e-05/0.109, allocations: 39.84 kB / 361 MB, free: 9.113 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.61e-05/0.1091, allocations: 55.98 kB / 361.1 MB, free: 9.059 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004352/0.1095, allocations: 386.9 kB / 361.4 MB, free: 8.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.1095, allocations: 0 / 361.4 MB, free: 8.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002948/0.1099, allocations: 43.94 kB / 361.5 MB, free: 8.637 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.0001448/0.11, allocations: 117.8 kB / 361.6 MB, free: 8.516 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004957/0.1105, allocations: 437.6 kB / 362 MB, free: 8.039 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.1105, allocations: 0 / 362 MB, free: 8.039 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003056/0.1108, allocations: 381.8 kB / 362.4 MB, free: 7.617 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005955/0.1114, allocations: 126.4 kB / 362.5 MB, free: 7.504 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001085/0.1125, allocations: 0.8038 MB / 363.3 MB, free: 6.672 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003897/0.1129, allocations: 0.802 MB / 364.1 MB, free: 5.844 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.145e-05/0.113, allocations: 11.44 kB / 364.1 MB, free: 5.832 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.113, allocations: 0 / 364.1 MB, free: 5.832 MB / 302.1 MB Notification: Performance of Templates: time 0.004133/0.1171, allocations: 2.673 MB / 366.8 MB, free: 3.105 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