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.001583/0.001583, allocations: 112.5 kB / 17.86 MB, free: 5.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00199/0.00199, allocations: 209.7 kB / 18.79 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 227.4 MB / 246.9 MB, free: 9.027 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.001261, allocations: 60.34 kB / 306.9 MB, free: 0.8086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09256/0.09383, allocations: 50.53 MB / 357.4 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002671/0.09654, allocations: 1.568 MB / 359 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001812/0.09838, allocations: 0.9122 MB / 359.9 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.518e-05/0.09846, allocations: 4 kB / 359.9 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.832e-05/0.09859, allocations: 7.922 kB / 359.9 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.18e-05/0.09868, allocations: 15.92 kB / 359.9 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002205/0.09891, allocations: 47.89 kB / 360 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001228/0.09904, allocations: 99.81 kB / 360.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.631e-05/0.09914, allocations: 28.17 kB / 360.1 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005646/0.09972, allocations: 0.5576 MB / 360.7 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000107/0.09984, allocations: 71.64 kB / 360.7 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.174e-05/0.09988, allocations: 4 kB / 360.7 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.293e-05/0.09992, allocations: 4 kB / 360.7 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.303e-05/0.1, allocations: 67.75 kB / 360.8 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001282/0.1001, allocations: 111.2 kB / 360.9 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000247/0.1004, allocations: 295.3 kB / 361.2 MB, free: 10.47 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1004, allocations: 4 kB / 361.2 MB, free: 10.47 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.42e-07/0.1004, allocations: 0 / 361.2 MB, free: 10.47 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.1004, allocations: 4 kB / 361.2 MB, free: 10.46 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.0008084/0.1012, allocations: 0.723 MB / 361.9 MB, free: 9.668 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.1013, allocations: 12.02 kB / 361.9 MB, free: 9.656 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.507e-05/0.1014, allocations: 40.47 kB / 362 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002755/0.1017, allocations: 266.3 kB / 362.2 MB, free: 9.316 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.013e-05/0.1017, allocations: 8.375 kB / 362.3 MB, free: 9.309 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.684e-05/0.1017, allocations: 4.375 kB / 362.3 MB, free: 9.305 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000293/0.102, allocations: 129.9 kB / 362.4 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.102, allocations: 7.938 kB / 362.4 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.421e-05/0.1021, allocations: 11.98 kB / 362.4 MB, free: 9.152 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.1021, allocations: 4 kB / 362.4 MB, free: 9.148 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001391/0.1022, allocations: 59.95 kB / 362.5 MB, free: 9.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006132/0.1029, allocations: 448.6 kB / 362.9 MB, free: 8.602 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000186/0.103, allocations: 98.47 kB / 363 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001435/0.1032, allocations: 92.89 kB / 363.1 MB, free: 8.402 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.006e-05/0.1032, allocations: 0 / 363.1 MB, free: 8.402 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003208/0.1035, allocations: 206.6 kB / 363.3 MB, free: 8.176 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.312e-06/0.1036, allocations: 0 / 363.3 MB, free: 8.176 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007727/0.1043, allocations: 476.1 kB / 363.8 MB, free: 7.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.744e-05/0.1044, allocations: 170.2 kB / 363.9 MB, free: 7.477 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005951/0.105, allocations: 0.5168 MB / 364.4 MB, free: 6.953 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.256e-05/0.1051, allocations: 33.81 kB / 364.5 MB, free: 6.914 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.546e-05/0.1052, allocations: 105 kB / 364.6 MB, free: 6.809 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.938e-05/0.1052, allocations: 27.64 kB / 364.6 MB, free: 6.781 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001128/0.1053, allocations: 85.41 kB / 364.7 MB, free: 6.691 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.1055, allocations: 330.8 kB / 365 MB, free: 6.359 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000131/0.1056, allocations: 55.97 kB / 365.1 MB, free: 6.305 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001473/0.1057, allocations: 73.62 kB / 365.1 MB, free: 6.227 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003328/0.1061, allocations: 346.5 kB / 365.5 MB, free: 5.836 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.155e-06/0.1061, allocations: 0 / 365.5 MB, free: 5.836 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005445/0.1067, allocations: 396.2 kB / 365.9 MB, free: 5.418 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.547e-05/0.1067, allocations: 122.8 kB / 366 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.1067, allocations: 0 / 366 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.1068, allocations: 0 / 366 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.895e-05/0.1068, allocations: 0 / 366 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.715e-06/0.1068, allocations: 4 kB / 366 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001484/0.107, allocations: 16.14 kB / 366 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.61e-05/0.107, allocations: 59.94 kB / 366.1 MB, free: 5.195 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,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.x,$PRE.nXFERGATE.inertialDelaySensitive.x,nXFERGATE.yy,nXFERGATE.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.000329/0.1074, allocations: 370.7 kB / 366.4 MB, free: 4.801 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.761e-05/0.1074, allocations: 31.62 kB / 366.5 MB, free: 4.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.874e-05/0.1075, allocations: 71.14 kB / 366.5 MB, free: 4.691 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.1075, allocations: 0 / 366.5 MB, free: 4.691 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.1076, allocations: 0 / 366.5 MB, free: 4.691 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.1076, allocations: 0 / 366.5 MB, free: 4.691 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001015/0.1086, allocations: 0.8405 MB / 367.4 MB, free: 3.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.1086, allocations: 0 / 367.4 MB, free: 3.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.292e-06/0.1086, allocations: 0 / 367.4 MB, free: 3.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.157e-06/0.1086, allocations: 3.984 kB / 367.4 MB, free: 3.766 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.018e-05/0.1086, allocations: 15.98 kB / 367.4 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.1087, allocations: 0 / 367.4 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.1087, allocations: 3.938 kB / 367.4 MB, free: 3.746 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006306/0.1093, allocations: 0.5291 MB / 367.9 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003263/0.1096, allocations: 248.4 kB / 368.2 MB, free: 2.914 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.271e-05/0.1097, allocations: 12 kB / 368.2 MB, free: 2.902 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001378/0.1099, allocations: 8 kB / 368.2 MB, free: 2.895 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.11, allocations: 31.91 kB / 368.2 MB, free: 2.863 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.914e-05/0.11, allocations: 59.92 kB / 368.3 MB, free: 2.805 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004462/0.1105, allocations: 386.9 kB / 368.6 MB, free: 2.426 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1105, allocations: 3.938 kB / 368.7 MB, free: 2.422 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002953/0.1108, allocations: 47.94 kB / 368.7 MB, free: 2.375 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 (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.0001362/0.1109, allocations: 119.1 kB / 368.8 MB, free: 2.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006446/0.1116, allocations: 441.5 kB / 369.2 MB, free: 1.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1116, allocations: 3.938 kB / 369.3 MB, free: 1.766 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003395/0.112, allocations: 373.6 kB / 369.6 MB, free: 1.352 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005872/0.1126, allocations: 108.2 kB / 369.7 MB, free: 1.254 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001184/0.1137, allocations: 0.8017 MB / 370.5 MB, free: 428 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1393/0.2531, allocations: 0.7948 MB / 371.3 MB, free: 20.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.647e-05/0.2532, allocations: 10.72 kB / 371.3 MB, free: 20.04 MB / 302.1 MB Notification: Performance of SimCode: time 7.32e-07/0.2532, allocations: 1.125 kB / 371.3 MB, free: 20.04 MB / 302.1 MB Notification: Performance of Templates: time 0.005524/0.2587, allocations: 2.671 MB / 374 MB, free: 19.82 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches