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.001577/0.001577, allocations: 117 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002134/0.002134, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001207, allocations: 57.69 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09874/0.09997, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002818/0.1028, allocations: 1.506 MB / 360.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001905/0.1048, allocations: 0.8981 MB / 361.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.795e-05/0.1048, allocations: 3.938 kB / 361.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001041/0.1049, allocations: 11.86 kB / 361.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.223e-05/0.1051, allocations: 15.86 kB / 361.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002819/0.1053, allocations: 47.88 kB / 361.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002124/0.1056, allocations: 143.8 kB / 361.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001302/0.1057, allocations: 20.23 kB / 361.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005926/0.1063, allocations: 0.5615 MB / 362.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001442/0.1065, allocations: 75.64 kB / 362.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.361e-05/0.1065, allocations: 12 kB / 362.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.651e-05/0.1065, allocations: 8 kB / 362.2 MB, free: 10 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.803e-05/0.1066, allocations: 63.75 kB / 362.3 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001253/0.1068, allocations: 119.1 kB / 362.4 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003224/0.1071, allocations: 366.7 kB / 362.7 MB, free: 9.465 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1071, allocations: 4 kB / 362.7 MB, free: 9.461 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1071, allocations: 0 / 362.7 MB, free: 9.461 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.1071, allocations: 4 kB / 362.7 MB, free: 9.457 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.0007307/0.1079, allocations: 0.7266 MB / 363.5 MB, free: 8.656 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.1079, allocations: 8.031 kB / 363.5 MB, free: 8.648 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.609e-05/0.108, allocations: 40.47 kB / 363.5 MB, free: 8.609 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002939/0.1083, allocations: 278.3 kB / 363.8 MB, free: 8.297 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.019e-05/0.1083, allocations: 4.375 kB / 363.8 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.852e-05/0.1084, allocations: 8.375 kB / 363.8 MB, free: 8.285 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003078/0.1087, allocations: 133.9 kB / 363.9 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.1087, allocations: 0 / 363.9 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.74e-05/0.1087, allocations: 11.98 kB / 363.9 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.189e-06/0.1087, allocations: 0 / 363.9 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001361/0.1089, allocations: 59.97 kB / 364 MB, free: 8.078 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006645/0.1095, allocations: 456.5 kB / 364.4 MB, free: 7.582 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002145/0.1098, allocations: 94.55 kB / 364.5 MB, free: 7.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00018/0.11, allocations: 88.89 kB / 364.6 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.022e-05/0.11, allocations: 0 / 364.6 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003512/0.1104, allocations: 214.5 kB / 364.8 MB, free: 7.156 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.412e-06/0.1104, allocations: 0 / 364.8 MB, free: 7.156 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.000783/0.1112, allocations: 472 kB / 365.3 MB, free: 6.664 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/0.1113, allocations: 162.2 kB / 365.4 MB, free: 6.469 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007004/0.112, allocations: 0.5208 MB / 366 MB, free: 5.938 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.962e-05/0.112, allocations: 29.7 kB / 366 MB, free: 5.902 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.314e-05/0.1121, allocations: 97.05 kB / 366.1 MB, free: 5.805 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.957e-05/0.1121, allocations: 35.58 kB / 366.1 MB, free: 5.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001144/0.1122, allocations: 81.42 kB / 366.2 MB, free: 5.684 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.1124, allocations: 326.8 kB / 366.5 MB, free: 5.355 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001232/0.1125, allocations: 55.97 kB / 366.6 MB, free: 5.301 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001307/0.1127, allocations: 84.84 kB / 366.7 MB, free: 5.215 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003243/0.113, allocations: 350.5 kB / 367 MB, free: 4.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.113, allocations: 4.109 kB / 367 MB, free: 4.816 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005189/0.1135, allocations: 388.2 kB / 367.4 MB, free: 4.406 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.409e-05/0.1136, allocations: 126.8 kB / 367.5 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.1137, allocations: 0 / 367.5 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.1137, allocations: 0 / 367.5 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.124e-05/0.1137, allocations: 4 kB / 367.5 MB, free: 4.254 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.595e-06/0.1137, allocations: 3.938 kB / 367.5 MB, free: 4.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001478/0.1139, allocations: 12.03 kB / 367.5 MB, free: 4.238 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.885e-05/0.1139, allocations: 59.92 kB / 367.6 MB, free: 4.18 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.0003515/0.1143, allocations: 378.8 kB / 368 MB, free: 3.777 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.722e-05/0.1144, allocations: 35.62 kB / 368 MB, free: 3.742 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.879e-05/0.1145, allocations: 63.16 kB / 368.1 MB, free: 3.672 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.1145, allocations: 0 / 368.1 MB, free: 3.672 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.1145, allocations: 0 / 368.1 MB, free: 3.672 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.1145, allocations: 0 / 368.1 MB, free: 3.672 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001019/0.1155, allocations: 0.825 MB / 368.9 MB, free: 2.766 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.1155, allocations: 0 / 368.9 MB, free: 2.766 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.769e-06/0.1155, allocations: 3.938 kB / 368.9 MB, free: 2.762 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.057e-06/0.1156, allocations: 3.984 kB / 368.9 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.746e-05/0.1156, allocations: 12 kB / 368.9 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1156, allocations: 0 / 368.9 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.1156, allocations: 3.938 kB / 368.9 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006427/0.1162, allocations: 0.5369 MB / 369.4 MB, free: 2.164 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003302/0.1166, allocations: 248.4 kB / 369.7 MB, free: 1.902 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.505e-05/0.1166, allocations: 8 kB / 369.7 MB, free: 1.895 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001304/0.1168, allocations: 11.98 kB / 369.7 MB, free: 1.883 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.1169, allocations: 27.92 kB / 369.7 MB, free: 1.855 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.139e-05/0.117, allocations: 63.92 kB / 369.8 MB, free: 1.793 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004998/0.1175, allocations: 386.9 kB / 370.2 MB, free: 1.418 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1175, allocations: 0 / 370.2 MB, free: 1.418 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002829/0.1178, allocations: 40 kB / 370.2 MB, free: 1.379 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.0001472/0.1179, allocations: 126.9 kB / 370.3 MB, free: 1.246 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005375/0.1185, allocations: 441.7 kB / 370.8 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.1185, allocations: 0 / 370.8 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003073/0.1188, allocations: 373.6 kB / 371.1 MB, free: 360 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00059/0.1194, allocations: 122.4 kB / 371.3 MB, free: 252 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1442/0.2637, allocations: 0.6509 MB / 371.9 MB, free: 20.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000285/0.264, allocations: 0.8037 MB / 372.7 MB, free: 19.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.58e-05/0.2641, allocations: 13.17 kB / 372.7 MB, free: 19.81 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.538e-05/0.2641, allocations: 13.91 kB / 372.7 MB, free: 19.8 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2641, allocations: 0 / 372.7 MB, free: 19.8 MB / 302.1 MB Notification: Performance of Templates: time 0.008035/0.2721, allocations: 4.654 MB / 377.4 MB, free: 19.39 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 -s gbode -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